1

我敢肯定没有人开始平衡,有什么问题吗?

平衡运行如下: # hdfs balancer -threshold 1 16/02/19 15:10:02 INFO balancer.Balancer: Using a threshold of 1.0 16/02/19 15:10:02 INFO balancer.Balancer: namenodes = [hdfs://m1.h.c.test:8020, hdfs://m1.h.c.test] 16/02/19 15:10:02 INFO balancer.Balancer: parameters = Balancer.Parameters [BalancingPolicy.Node, threshold = 1.0, max idle iteration = 5, #excluded nodes = 0, #included nodes = 0, #source nodes = 0, run during upgrade = false] 16/02/19 15:10:02 INFO balancer.Balancer: included nodes = [] 16/02/19 15:10:02 INFO balancer.Balancer: excluded nodes = [] 16/02/19 15:10:02 INFO balancer.Balancer: source nodes = [] Time Stamp Iteration# Bytes Already Moved Bytes Left To Move Bytes Being Moved java.io.IOException: Another Balancer is running.. Exiting ...

我使用 hdp 包: ii hadoop-2-3-2-0-2950 2.7.1.2.3.2.0-2950
ii hadoop-2-3-2-0-2950-client 2.7.1.2.3.2.0-2950
ii hadoop-2-3-2-0-2950-hdfs 2.7.1.2.3.2.0-2950
ii hadoop-2-3-2-0-2950-hdfs-namenode 2.7.1.2.3.2.0-2950

4

3 回答 3

2

你可以试试: hdfs dfs -rm -skipTrash /system/balancer.id

于 2017-06-28T13:36:43.703 回答
2

它也可能是 https://issues.apache.org/jira/browse/HDFS-8897中描述的问题 - 这是特定于 HDFS HA 配置的。

HDFS 2.8 和 3.0 中已修复的问题。

于 2017-09-26T04:08:41.430 回答
0

只需运行以下命令即可终止该进程。

kill $(ps aux | grep 'balancer' | awk '{print $2}')

然后使用 Ambari 运行平衡器。

如果您使用的是 HA 环境,请首先通过使用找出进程在哪里运行,

hdfs dfs -cat /system/balancer.id 
于 2019-04-15T07:02:39.327 回答