Hive 将本地数据导入hive表中

时间:2021-11-23 06:39:26
# 导入
load data local inpath '/root/mr/The_Man_of_Property.txt' insert into table article;

# 提示
FAILED: ParseException line 1:58 extraneous input 'insert' expecting INTO near '<EOF>'

# 查找半天没发现哪里有问题,怎么试都没用,把表重新建还是一样的问题。
# 于是把 insert 改为 overwrite 就可以了。

load data local inpath '/root/mr/The_Man_of_Property.txt' overwrite into table article;