external
外部的;表面的;[药] 外用的;外国的;外面的
delimited
v. 划定…的界限;限定(delimit的过去分词)
adj. 划定界限的;被限定了的
terminated
[‘t?m?,net]
v. 终止;结束;终结(terminate的过去分词)
adj. 终止的;有限的
使用场景:
创建一个hive外部表:
create external table ext_book (id int,name string) row format delimited fields terminated by ‘\n‘ location ‘/data‘;
创建一个内部表:
create table tb_book (id int,name string) row format delimited fields terminated by ‘\t‘;
partitioned(partition)
[pɑr‘t???n]
adj. 分割的;分区的;分段的
vt. 划分(partition的过去分词);[数] 分割;把…分成部分
使用场景:
创建单级分区表
create table tb_book (id int,name string) partitioned by (country string) row format delimited fields terminated by ‘\t‘;
载入数据
load data local inpath ‘/usr/local/src/hive/data/ch.txt‘ overwrite into table tb_book partition (country=‘ch‘);