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;

  

猜你喜欢

转载自www.cnblogs.com/hanwen1014/p/11001870.html
今日推荐