From 13cf63cac5a458e26d4f1cdd8643c32d7a18e8fd Mon Sep 17 00:00:00 2001 From: Jean-Daniel Cryans Date: Fri, 18 Jun 2010 21:29:34 +0000 Subject: [PATCH] HBASE-2683 Make it obvious in the documentation that ZooKeeper needs permanent storage git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@956135 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 2 ++ src/main/javadoc/overview.html | 16 +++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 0902c1f2957..a9828f56c62 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -708,6 +708,8 @@ Release 0.21.0 - Unreleased message HBASE-2724 Update to new release of Guava library HBASE-2735 Make HBASE-2694 replication-friendly + HBASE-2683 Make it obvious in the documentation that ZooKeeper needs + permanent storage NEW FEATURES HBASE-1961 HBase EC2 scripts diff --git a/src/main/javadoc/overview.html b/src/main/javadoc/overview.html index 230f98758ed..968ec63e154 100644 --- a/src/main/javadoc/overview.html +++ b/src/main/javadoc/overview.html @@ -314,6 +314,20 @@ do:

${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