参考:

https://blog.csdn.net/mnasd/article/details/80369603

 

 

在CDH中选一个资源多的节点,安装

HDFS->添加角色到实例

hdfs的balancer

 

 启动后状态是灰的

hdfs的balancer

 

 

在做平衡之前,可做相关参数调整:

在hdfs的配置中输入balancer
dfs.datanode.balance.max.concurrent.moves #默认50
dfs.balancer.max-size-to-move 10G #各节点差异超过10G就平衡
Balancer 的 Java 堆栈大小 默认1G #可增加到2G

 

不过没关系,点进去在操作中选择重新平衡

hdfs的balancer

 

 

实际上就是在该节点上运行hdfs.sh  balancer.

hdfs的balancer

 

 注: 也可在该节点上手动执行命令: 

hdfs balancer -policy datanode -threshold 30 -include -f /tmp/hdfs-blancer.txt

#tmp/hdfs-blancer.txt 写上想要执行平衡节点的hostname.

 

相关文章:

  • 2021-04-14
  • 2021-05-29
  • 2022-12-23
  • 2023-03-31
  • 2022-12-23
  • 2021-09-29
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-25
  • 2021-08-18
  • 2022-01-27
  • 2022-12-23
  • 2021-05-01
  • 2022-12-23
相关资源
相似解决方案