一、Hive客户端:根据数据源不同划分
1、从本地文件系统中导入数据到hive表中:
load data local inpath "path" [OVERWRITE] into table tablename;
2、从HDFS上导入数据到hive表中:
load data inpath "path" [OVERWRITE] into table tablename;
3、从别的表查询出来的数据导入到hive表中:
insert overwrite table tablename_1 partition() select .... from tablename_2 where ......
二、spark
参考博客:
hive表中数据的导入和导出 http://www.360doc.com/content/18/0428/18/14808334_749499033.shtml
spark中将数据插入hive https://blog.****.net/a2639491403/article/details/80044121