user5688790
user5688790

Reputation:

Balancer not working in hdfs HA

When I try to run balancer:

HADOOP_USER_NAME=hdfs hdfs --config /etc/hadoop/conf.balancer/conf/ balancer -threshold 5

or

HADOOP_USER_NAME=hdfs hdfs balancer -fs hdfs://hdp

I get the following error:

java.io.IOException: Another Balancer is running

Of course I have read about this error, and for the moment I think that I have found the solution:

https://community.hortonworks.com/articles/4595/balancer-not-working-in-hdfs-ha.html

but, when I apply this solution.. I get the new error:

java.io.IOException: Couldn't create proxy provider class org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider.

And every hadoop command gives error exception:

hadoop fs -ls /

-ls: java.net.UnknownHostException: hdp

.

Upvotes: 0

Views: 966

Answers (1)

user5688790
user5688790

Reputation:

Posting the answer maybe it will be useful for someone.

This solution works: balancer-not-working-in-hdfs-ha.html

Just, please remember to delete rpc for single NN and don't touch HA settings.

Upvotes: 1

Related Questions