在hive命令终端直接导入文本数据: hive> LOAD DATA LOCAL INPATH '/home/simon/hive_test/a.txt' OVERWRITE INTO TABLE w_a;
查看特征: hive> select A.usrid, A.age, B.time from w_a A join w_b B on A.usrid = B.usrid;
通过LOAD命令直接将hadoop文件系统上的文件导入,不加LOCAL hive> LOAD DATA INPATH '/user_name.data.utf.txt' OVERWRITE INTO TABLE u_info;
hive数据导入另外一种方法: hive> insert into table w_d select usrid, age from w_a limit 2;
|
|