006.hdfs-查看各节点磁盘使用情况,集群平衡
查看各节点磁盘使用情况
hdfs dfsadmin -report | grep -E "Name:|DFS Used%:"
集群平衡
mv balance.sh /home/hdfs/ su hdfs vim balance.sh chmod +x balance.sh ls hdfs dfsadmin -setBalancerBandwidth 109715200 [hdfs@xxx ~]$ cat balance.sh #!/bin/sh hdfs balancer -threshold 1 [hdfs@xxx ~]$ nohup sh balance.sh & hdfs dfsadmin -setBalancerBandwidth 209715200