HDFS Balance笔记

操作步骤m-节点

  • 查看网卡速度 : 1000Mb/s
[root@m-onedata ~]# ethtool bond0
Settings for bond0:
    Supported ports: [ ]
    Supported link modes:   Not reported
    Supported pause frame use: No
    Supports auto-negotiation: No
    Advertised link modes:  Not reported
    Advertised pause frame use: No
    Advertised auto-negotiation: No
    Speed: 1000Mb/s
    Duplex: Full
    Port: Other
    PHYAD: 0
    Transceiver: internal
    Auto-negotiation: off
    Link detected: yes
  • 设置 balance带宽 : 10Mb/s
su hdfs -c 'hdfs dfsadmin -setBalancerBandwidth 10485760'
  • 执行balance操作:
nohup su hdfs -c 'hdfs balancer' > /tmp/balancerstderr.log 2> /tmp/balancerstdout.log &
HDFS Balance笔记_第1张图片
balance之前

你可能感兴趣的:(HDFS Balance笔记)