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

 

posted @ 2023-06-27 10:53  star521  阅读(148)  评论(0编辑  收藏  举报