1.以指定的分隔符导入到本地文件
"/home/hadoop/wyp" 文件路劲
insert overwrite local directory "/home/hadoop/wyp" ROW FORMAT DELIMITED FIELDS TERMINATED by ',' select p,s from table_fileattr_20180615new where s / 1073741824>1024 ;
2.导入到HDFS
hive> insert overwrite directory '/home/wyp/hdfs' > select * from wyp;
3 导入到表格中
hive> insert into table test partition (age='25') select id, name, tel from wyp;