Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
HA branch (HDFS-1623)
-
None
-
Reviewed
Description
Presently Balancer uses real URI for creating the failover proxy.
Since the failover proxy checks for uri consistency, we should pass logical uri for creating failover proxy instead of instead of real URI. Presently will work only with default port.
java.io.IOException: Port 49832 specified in URI hdfs://127.0.0.1:49832 but host '127.0.0.1' is a logical (HA) namenode and does not use port information.
at org.apache.hadoop.hdfs.HAUtil.getFailoverProxyProviderClass(HAUtil.java:224)
at org.apache.hadoop.hdfs.HAUtil.createFailoverProxy(HAUtil.java:247)
at org.apache.hadoop.hdfs.server.balancer.NameNodeConnector.<init>(NameNodeConnector.java:80)
at org.apache.hadoop.hdfs.server.balancer.Balancer.run(Balancer.java:1401)