如何将文本文件的数据导入到hive中?


①将数据放到hdfs制定文件夹下:hadoop fs -put 服务器上的文件存储路径/文件名称.txt hdfs://alg-hdfs/hdfs上路径

②将hdfs中的数据导入到hive中: load data inpath 'hdfs://alg-hdfs/hdfs上的路径/文件名.txt' overwrite into table browser.表名


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM