首页  

hdfs shell 常用命令     所属分类 bigdata 浏览量 1380
hadoop fs
hadoop fs -ls /
hadoop fs -lsr
hadoop fs -mkdir /user/hadoop
hadoop fs -put a.txt /user/hadoop/
hadoop fs -get /user/hadoop/a.txt /
hadoop fs -cp src dst
hadoop fs -mv src dst
hadoop fs -cat /user/hadoop/a.txt
hadoop fs -rm /user/hadoop/a.txt
hadoop fs -rmr /user/hadoop/a.txt
hadoop fs -text /user/hadoop/a.txt

hadoop fs -copyFromLocal localsrc dst 
与hadoop fs -put功能类似

hadoop fs -moveFromLocal localsrc dst 
将本地文件上传到hdfs,同时删除本地文件


hadoop fsadmin 
hadoop dfsadmin -report
hadoop dfsadmin -safemode enter | leave | get | wait
hadoop dfsadmin -setBalancerBandwidth 1000

hadoop fsck

start-balancer.sh

上一篇     下一篇
aerospike集群信息查看

Hadoop2.0 Yarn 概述

CDH和Apache Hadoop比较

hdfs namenode HA 高可用

HDFS Federation 机制

CDH 5.14.2 各种角色