hdfs balancer -Ddfs.balancer.movedWinWidth=1800000 -Ddfs.balancer.moverThreads=1000 -Ddfs.balancer.dispatcherThreads=100
移动窗口宽度(dfs.balancer.movedWinWidth):计算平均移动速率时使用的时间窗口大小。默认值是5分钟(300000毫秒)。减小这个值,加快移动速率。
移动线程数量(dfs.balancer.moverThreads):可以同时移动的块的数量。默认值是1000。
调度线程数量(dfs.balancer.dispatcherThreads):可以同时调度的任务的数量。默认值是200。