开发者社区 问答 正文

Hive中追加导入数据的4种方式是什么?

Hive中追加导入数据的4种方式是什么?

展开
收起
芯在这 2021-12-11 23:09:32 605 分享 版权
1 条回答
写回答
取消 提交回答
  • 从本地导入: load data local inpath ‘/home/1.txt’ (overwrite)into table student;

    从Hdfs导入: load data inpath ‘/user/hive/warehouse/1.txt’ (overwrite)into table student;

    查询导入: create table student1 as select * from student;(也可以具体查询某项数据)

    查询结果导入:insert (overwrite)into table staff select * from track_log;

    2021-12-11 23:09:55
    赞同 展开评论
问答分类:
问答标签:
问答地址: