From 13cf63cac5a458e26d4f1cdd8643c32d7a18e8fd Mon Sep 17 00:00:00 2001
From: Jean-Daniel Cryans
${HBASE_HOME}/bin/hbase-daemons.sh {start,stop} zookeeper+
If you do let HBase manage ZooKeeper for you, make sure you configure +where it's data is stored. By default, it will be stored in /tmp which is +sometimes cleaned in live systems. Do modify this configuration:
++ <property> + <name>hbase.zookeeper.property.dataDir</name> + <value>${hbase.tmp.dir}/zookeeper</value> + <description>Property from ZooKeeper's config zoo.cfg. + The directory where the snapshot is stored. + </description> + </property> + ++
Note that you can use HBase in this manner to spin up a ZooKeeper cluster,
unrelated to HBase. Just make sure to set HBASE_MANAGES_ZK
to
false
if you want it to stay up so that when HBase shuts down it
@@ -321,7 +335,7 @@ doesn't take ZooKeeper with it.
For more information about setting up a ZooKeeper cluster on your own, see the ZooKeeper Getting Started Guide. -HBase currently uses ZooKeeper version 3.2.0, so any cluster setup with a +HBase currently uses ZooKeeper version 3.3.1, so any cluster setup with a 3.x.x version of ZooKeeper should work.
Of note, if you have made HDFS client configuration on your Hadoop cluster, HBase will not