hadoop中的常用命令

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.

猜你喜欢

转载自blog.csdn.net/Super_Json/article/details/82998006
今日推荐