Restore the HBase Configuration
If you have installed HBase, you might need to restore a configuration to its pre-HA state:
From the Ambari server host, determine whether your current HBase configuration must be restored:
/var/lib/ambari-server/resources/scripts/configs.sh -u <AMBARI_USER> -p <AMBARI_PW> -port <AMBARI_PORT> get localhost <CLUSTER_NAME> hbase-siteUse the environment variables that you set up when preparing the Ambari server host for rollback for the variable names.
If
hbase.rootdiris set to the NameService ID you set up using the Enable NameNode HA wizard, you must reverthbase-siteto non-HA values. For example, in"hbase.rootdir":"hdfs://<name-service-id>:8020/apps/hbase/data", thehbase.rootdirproperty points to the NameService ID and the value must be rolled back.If
hbase.rootdirpoints instead to a specific NameNode host, it does not need to be rolled back. For example, in"hbase.rootdir":"hdfs://<nn01.mycompany.com>:8020/apps/hbase/data", thehbase.rootdirproperty points to a specific NameNode host and not a NameService ID. This does not need to be rolled back; you can proceed to delete ZooKeeper failover controllers.If you must roll back the
hbase.rootdirvalue, on the Ambari Server host, use theconfig.shscript to make the necessary change:/var/lib/ambari-server/resources/scripts/configs.sh -u <AMBARI_USER> -p<AMBARI_PW> -port <AMBARI_PORT> set localhost <CLUSTER_NAME> hbase-site hbase.rootdir hdfs://<NAMENODE_HOSTNAME>:8020/apps/hbase/dataUse the environment variables that you set up when preparing the Ambari server host for rollback for the variable names.
On the Ambari server host, verify that the
hbase.rootdirproperty has been restored properly:/var/lib/ambari-server/resources/scripts/configs.sh -u <AMBARI_USER> -p <AMBARI_PW> -port <AMBARI_PORT> get localhost <CLUSTER_NAME> hbase-siteThe
hbase.rootdirproperty should now be the same as the NameNode hostname, not the NameService ID.
More Information

