1.查看hive表在hdfs上的存储位置

hive> show create table dj_test.hxy_coma_arrived_dri_often_stay;

LOCATION
  'hdfs://DClusterNmg4/user/dj_bi/warehouse/dj_test.db/hxy_coma_arrived_dri_often_stay'

hdfs dfs -du hdfs://DClusterNmg4/user/dj_bi/warehouse/dj_test.db/hxy_coma_arrived_dri_often_stay

hdfs dfs -du /user/dj_bi/warehouse/dj_test.db/hxy_safedriving_data_log

2.将文件拷贝到本地

hdfs dfs -copyToLocal /user/dj_bi/huangxiangyue/backup/huangxiangyue.tar.gz ~/huangxiangyue/huangxiangyue.tar.gz

3.

 

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐