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;
相关文章
相关标签/搜索