If you change the NameNode Service RPC Port
(
dfs.namenode.servicerpc-address
) while automatic
failover is enabled, this will cause a mismatch between the NameNode
address saved in the ZooKeeper
/hadoop-ha
znode and
the NameNode address that the Failover Controller is configured with.
This will prevent the Failover Controllers from restarting. If you
need to change the NameNode Service RPC Port after Auto Failover has
been enabled, you must do the following to re-initialize the znode:
- Stop the HDFS service.
- Configure the service RPC port:
- Go to the HDFS service.
- Click the Configuration tab
- Select
.
- Select
.
- Locate the NameNode Service RPC Port
property or search for it by typing its name in the Search
box.
- Change the port value as needed.
To apply this configuration property to other
role groups as needed, edit the value for the appropriate role group.
- On a ZooKeeper server host, run
zookeeper-client
.
- Run the following to remove the
configured nameservice. This example assumes the name of the
nameservice is nameservice1. You can identify the
nameservice from the Federation and High Availability
section on the HDFS Instances
tab:
rmr /hadoop-ha/nameservice1
- Click the Instances tab.
- Select .
- Start the HDFS service.