Changing a Nameservice Name for Highly Available HDFS Using Cloudera Manager
For background on HDFS high availability, see Enabling HDFS HA Using Cloudera Manager.
Before you start, make note of the name of the active NameNode role instance. You can find the list of NameNode instances on the Instances tab for the HDFS service in the Cloudera Manager Admin Console.
Complete the following steps to change the NameService name for HDFS with HA:
- Stop all services except ZooKeeper.
- On a ZooKeeper server host, run zookeeper-client.
- Execute 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
- Execute 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:
- In the Cloudera Manager Admin Console, update the NameNode nameservice name.
- Go to the HDFS service.
- Click the Configuration tab.
- Type nameservice in the Search field.
- For the NameNode Nameservice property, type the nameservice name in the NameNode (instance_name) field. The name must be unique and can contain only alphanumeric characters.
- Type quorum in the Search field.
- For the Quorum-based Storage Journal name property, type the nameservice name in the NameNode (instance_name) field.
- Enter a Reason for change, and then click Save Changes to commit the changes.
- Click the Instances tab.
- In the Federation and High Availability pane, select .
- Go to the Hive service.
- Select .
- Go to the HDFS service.
- Click the Instances tab.
- Select the checkboxes next to the JournalNode role instances.
- Select .
- Click on an active NameNode role instance.
- Select .
- Click the Cloudera Manager logo to return to the Home page.
- Redeploy client configuration files.
- Start all services except ZooKeeper.