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;
相關文章
相關標籤/搜索