Index: src/assembly/all.xml
===================================================================
--- src/assembly/all.xml (revision 1209228)
+++ src/assembly/all.xml (working copy)
@@ -69,6 +69,19 @@
target/site
docs
+
+ src/packages/templates/conf
+ share/hbase/templates/conf
+
+
+ src/packages
+ sbin
+ 755
+
+ hbase-setup-conf.sh
+ update-hbase-env.sh
+
+
Index: src/docbkx/getting_started.xml
===================================================================
--- src/docbkx/getting_started.xml (revision 1209228)
+++ src/docbkx/getting_started.xml (working copy)
@@ -65,7 +65,31 @@
At this point, you are ready to start HBase. But before starting
- it, you might want to edit conf/hbase-site.xml and
+ it, you might want to configure HBase.
+
+
+
+ Setup HBase
+ HBase provide a post installation setup script. The script is
+ design to run as root user to setup directory and file permissions.
+ This script is designed to configure HBase to work with Hadoop. For
+ running standalone HBase, skip to section.
+
+ $ sudo hbase-setup-conf.sh --hadoop-home=/usr \
+ --hadoop-conf=/etc/hadoop \
+ --hadoop-namenode=localhost \
+ --hbase-conf=/etc/hbase \
+ --hbase-log=/var/log/hbase \
+ --hbase-pid=/var/run/hbase \
+ --java-home=/usr/java/default \
+ --regionservers=localhost
+
+
+
+
+
+ Customize HBase Configuration
+ Edit conf/hbase-site.xml and
set the directory you want HBase to write to,
hbase.rootdir.
Index: src/packages/update-hbase-env.sh
===================================================================
--- src/packages/update-hbase-env.sh (revision 1209228)
+++ src/packages/update-hbase-env.sh (working copy)
@@ -103,13 +103,13 @@
LOG_DIR=${LOG_DIR:-$PREFIX/var/log}
PID_DIR=${PID_DIR:-$PREFIX/var/run}
UNINSTALL=${UNINSTALL:-0}
+ZOOKEEPER_HOME=${ZOOKEEPER_HOME:-/usr}
if [ "${ARCH}" != "i386" ]; then
LIB_DIR=${LIB_DIR}64
fi
. /etc/default/hadoop-env.sh
-. /etc/default/zookeeper-env.sh
if [ "${UNINSTALL}" -eq "1" ]; then
# Remove symlinks