1、導出shell
1.導入到本地文件系統中ide
hive> show tables; OK location temperature windspeed Time taken: 0.679 seconds, Fetched: 3 row(s) hive> insert overwrite local directory '/home/hadoop/data' > select * from location; ... ... ... [hadoop@hftclclw0001 data]$ pwd /home/hadoop/data [hadoop@hftclclw0001 data]$ ll total 4 -rw-r--r-- 1 hadoop root 113 Oct 27 09:05 000000_0 [hadoop@hftclclw0001 data]$ cat 000000_0 Adelaide6769 Clean_Air900 Faraday6564 Grytviken5436 Halley7526 Neumayer708 Rothera6768 Signy6045
2.導出到HDFS中oop
hive> show tables; OK location temperature windspeed Time taken: 0.679 seconds, Fetched: 3 row(s) hive> insert overwrite directory '/user/user01/data' > select * from location; ... ... ...
3.導出到Hive中的另外一張表中code
2、導入hadoop