Prepare node-1 for Hbase
Prevent the RegionServer on node-1 from starting.
Edit conf/regionservers by removing the line that contains
localhost and adding lines with the host name or IP addresseses for node-2 and
If you want to run a RegionServer on node-1, you should refer to it by the hostname the other servers would use to communicate with it.For example, for node-1, it is called as node-1.test.com.
Configure HBase to use node-2 as a backup Master by creating a new file in conf/
called backup-Masters, and adding a new line to it with the host name for
For example, node-2.test.com.
Configure ZooKeeper on node-1 by editing conf/hbase-site.xml and adding the
<property> <name>hbase.zookeeper.quorum</name> <value>node-1.test.com,node-2.test.com,node-3.test.com</value> </property> <property> <name>hbase.zookeeper.property.dataDir</name> <value>/usr/local/zookeeper</value> </property>This configuration directs HBase to start and manage a ZooKeeper instance on each node of the cluster. You can learn more about configuring ZooKeeper at the Apache Zookeeper project site.
Change every reference in your configuration to node-1 as localhost to point to the
host name that the other nodes use to refer to node-1.
In this example, node-1.test.com.