hadoop 平衡空间设置方法

来源:互联网 发布:unity3d人物动画设置 编辑:程序博客网 时间:2024/06/02 15:52

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

0 0
原创粉丝点击