hadoop 平衡空间设置方法

在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存储量 

猜你喜欢

转载自daizj.iteye.com/blog/2195608