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 -d...
·
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.
更多推荐
所有评论(0)