其他分享
首页 > 其他分享> > hive 导入数据命令

hive 导入数据命令

作者:互联网

 

hadoop fs -ls /

hadoop fs -ls  /tmp

hadoop ls -put /root/east_dbgx_202103080820.txt /tmp

vim east_dbgx_202103080820.txt

hadoop fs -ls /user/hive/warehouse
hadoop fs -ls /tmp/
hadoop fs -put /root/east_dbgx_202103080820.txt /tmp/hive/cloudera

hive
load data local inpath '/root/east_dbgx_202103080820.txt' overwrite into table jgsjzl.east_dbgx;

load data local inpath '/root/east_dbgx_202103080820.txt' overwrite into table east_dbgx;

SELECT * FROM jgsjzl.east_dbgx;

  

 

标签:east,202103080820,hadoop,hive,命令,导入,ls,txt,dbgx
来源: https://www.cnblogs.com/zhenning17/p/15316142.html