在hdfs-site.xml中增加设置balance的带宽,默认只有1M:
<property>
<name>dfs.balance.bandwidthPerSec</name>
<value>10485760</value>
<description>
Specifies the maximum bandwidth thateach datanode can utilize for the balancing purpose in term of the number ofbytes per second.
</description>
</property>
运行命令 start-balancer.sh -threshold 5 进行平衡空间
start-balancer.sh可以执行-threshold参数。
-threshold参数是指定平衡的阈值。
-threshold的默认是10,即每个datanode节点的实际hdfs存储使用量/集群hdfs存储量
本文介绍如何在HDFS中通过配置文件hdfs-site.xml调整数据平衡的带宽限制,并使用start-balancer.sh命令执行数据平衡操作。通过设置dfs.balance.bandwidthPerSec属性可以指定每个DataNode用于平衡目的的最大带宽。
395

被折叠的 条评论
为什么被折叠?



