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

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

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

posted @ 2019-08-30 10:04  TryMyBest!  阅读(2716)  评论(0)    收藏  举报