Hive 将本地数据导入hive表中

# 导入
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;

  

posted @ 2019-06-11 09:27  听~雨  阅读(3064)  评论(1)    收藏  举报