Based on your requirements, you can change a nameservice name for a cluster that has
HDFS HA configured.
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.-
Ensure that you save the current namespace and merge all the recent edits to the
fsimage.
-
Go to the HDFS service.
-
Click the Instances tab.
-
Click on an active NameNode role instance.
-
Select .
A confirmation message displays asking you to cancel or enter safemode.
-
Click Enter Safemode.
-
Select .
A confirmation message displays asking you to cancel or save the namespace.
-
Click Save Namespace.
- Stop all services except ZooKeeper.
-
On a ZooKeeper 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
-
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.
- 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 the NameNode (Active) role instance.
- Select
.
-
Return to the HDFS service and click the Instances tab.
-
Click the NameNode (Standby) role instance.
-
Select .
- Click the Cloudera Manager logo to return to the
Home page.
- Redeploy client configuration files.
- Start all services except ZooKeeper.