Manually remove a NameNode from existing HDFS HA cluster
This topic lists the steps to manually remove a NameNode from existing HDFS HA cluster.
- Stop the existing HDFS Transparency
NameNodes.
mmces service stop hdfs -N c16f1n07,c16f1n08
or
mmces service stop hdfs -a
- Disable the CES HDFS services on the NameNode that you want to
remove.
mmchnode --ces-disable -N c16f1n08
- Remove the NameNode related property from the hdfs-site.xml.
For example, the existing HDFS HA cluster NameNode is c16f1n07(nn1) and c16f1n08(nn2). The NameNode that will be removed is c16f1n08.
mmhdfs config del hdfs-site.xml -k dfs.namenode.shared.edits.dir -k dfs.namenode.rpc-address.cluster.nn2 -k dfs.namenode.http-address.cluster.nn2
mmhdfs config set hdfs-site.xml -k dfs.ha.namenodes.cluster=nn1
- Upload the configuration into CCR.
mmhdfs config upload
- Start the existing HDFS Transparency
NameNode.
mmces service start hdfs
- Check the HDFS NameNode status in the existing HDFS cluster.
mmces service list -a
- Restart DataNodes to take effective.
mmhdfs hdfs-dn restart
- Check DataNodes status.
mmhdfs hdfs-dn status