继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

Hive导入数据的3种方式

喵喵一只汪
关注TA
已关注
手记 315
粉丝 87
获赞 467

1,通过hadoop -put的方式

hadoop fs -put student.txt /user/hive/warehouse/tuoming.db/temp_student/


查看


2,在hive中通过 load data local inpath 从本地服务器导入


load data local inpath '/home/tuoming/test/student1.txt' into table temp_student; 


3,在hive中通过 load data inpath 从hdfs导入


load data inpath 'user/tuoming/test/tt/student2.txt' into table temp_student; 


原文出处

打开App,阅读手记
0人推荐
发表评论
随时随地看视频慕课网APP