You may need to modify your hdfs-site configuration and/or your
core-site configuration.
To check if you need to modify your
hdfs-siteconfiguration, on the Ambari Server host:/var/lib/ambari-server/resources/scripts/configs.sh -u $AMBARI_USER -p $AMBARI_PW -port $AMBARI_PORT get localhost $CLUSTER_NAME hdfs-site
If you see any of the following properties, you must delete them from your
hdfs-siteconfiguration.dfs.nameservicesdfs.client.failover.proxy.provider.${NAMESERVICE_ID}dfs.ha.namenodes.${NAMESERVICE_ID}dfs.ha.fencing.methodsdfs.ha.automatic-failover.enableddfs.namenode.http-address.${NAMESERVICE_ID}.nn1dfs.namenode.http-address.${NAMESERVICE_ID}.nn2dfs.namenode.rpc-address.${NAMESERVICE_ID}.nn1dfs.namenode.rpc-address.${NAMESERVICE_ID}.nn2dfs.namenode.shared.edits.dirdfs.journalnode.edits.dirdfs.journalnode.http-addressdfs.journalnode.kerberos.internal.spnego.principaldfs.journalnode.kerberos.principaldfs.journalnode.keytab.fileWhere
${NAMESERVICE_ID}is the NameService ID you created when you ran the Enable NameNode HA wizard.
To delete these properties, execute the following for each property you found. On the Ambari Server host:
/var/lib/ambari-server/resources/scripts/configs.sh -u $AMBARI_USER -p $AMBARI_PW -port $AMBARI_PORT delete localhost $CLUSTER_NAME hdfs-site property_name
Where you replace
property_namewith the name of each of the properties to be deleted.Verify that all of the properties have been deleted. On the Ambari Server host:
/var/lib/ambari-server/resources/scripts/configs.sh -u $AMBARI_USER -p $AMBARI_PW -port $AMBARI_PORT get localhost $CLUSTER_NAME hdfs-site
None of the properties listed above should be present.
To check if you need to modify your
core-siteconfiguration, on the Ambari Server host:/var/lib/ambari-server/resources/scripts/configs.sh -u $AMBARI_USER -p $AMBARI_PW -port $AMBARI_PORT get localhost $CLUSTER_NAME core-site
If you see the property
ha.zookeeper.quorum, it must be deleted. On the Ambari Server host:/var/lib/ambari-server/resources/scripts/configs.sh -u $AMBARI_USER -p $AMBARI_PW -port $AMBARI_PORT delete localhost $CLUSTER_NAME core-site ha.zookeeper.quorum
If the property
fs.defaultFSis set to the NameService ID, it must be reverted back to its non-HA value. For example:“fs.defaultFS” : “hdfs://name-service-id” The property fs.defaultFS needs to be modified as it points to a NameService ID “fs.defaultFS” : “hdfs://nn01.mycompany.com” The property fs.defaultFS does not need to be changed as it points to a specific NameNode and not a NameService ID
To revert the property
fs.defaultFSto the NameNode host value, on the Ambari Server host:/var/lib/ambari-server/resources/scripts/configs.sh -u $AMBARI_USER -p $AMBARI_PW -port $AMBARI_PORT set localhost $CLUSTER_NAME core-site fs.defaultFS hdfs://${NAMENODE_HOSTNAME}Verify that the
core-siteproperties are now properly set. On the Ambari Server host:/var/lib/ambari-server/resources/scripts/configs.sh -u $AMBARI_USER -p $AMBARI_PW -port $AMBARI_PORT get localhost $CLUSTER_NAME core-site
The property
fs.defaultFSshould be set to point to the NameNode host and the propertyha.zookeeper.quorumshould not be there.

