HBASE-2335 mapred package docs don't say zookeeper jar is a dependent

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@932004 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-04-08 16:56:21 +00:00
parent 193476d4c2
commit 1b04442fbc
2 changed files with 10 additions and 13 deletions

View File

@ -264,6 +264,7 @@ Release 0.21.0 - Unreleased
HBASE-2398 NPE in HLog.append when calling writer.getLength HBASE-2398 NPE in HLog.append when calling writer.getLength
(Kannan Muthukkaruppan via Stack) (Kannan Muthukkaruppan via Stack)
HBASE-2410 spurious warnings from util.Sleeper HBASE-2410 spurious warnings from util.Sleeper
HBASE-2335 mapred package docs don't say zookeeper jar is a dependent
IMPROVEMENTS IMPROVEMENTS
HBASE-1760 Cleanup TODOs in HTable HBASE-1760 Cleanup TODOs in HTable

View File

@ -37,26 +37,22 @@ You could add <code>hbase-site.xml</code> to $HADOOP_HOME/conf and add
changes across your cluster but the cleanest means of adding hbase configuration changes across your cluster but the cleanest means of adding hbase configuration
and classes to the cluster <code>CLASSPATH</code> is by uncommenting and classes to the cluster <code>CLASSPATH</code> is by uncommenting
<code>HADOOP_CLASSPATH</code> in <code>$HADOOP_HOME/conf/hadoop-env.sh</code> <code>HADOOP_CLASSPATH</code> in <code>$HADOOP_HOME/conf/hadoop-env.sh</code>
and adding the path to the hbase jar and <code>$HBASE_CONF_DIR</code> directory. adding hbase dependencies here. For example, here is how you would amend
Then copy the amended configuration around the cluster. <code>hadoop-env.sh</code> adding the
You'll probably need to restart the MapReduce cluster if you want it to notice built hbase jar, zookeeper (needed by hbase client), hbase conf, and the
the new configuration. <code>PerformanceEvaluation</code> class from the built hbase test jar to the
</p> hadoop <code>CLASSPATH</code>:
<p>For example, here is how you would amend <code>hadoop-env.sh</code> adding the
built hbase jar, hbase conf, and the <code>PerformanceEvaluation</code> class from
the built hbase test jar to the hadoop <code>CLASSPATH<code>:
<blockquote><pre># Extra Java CLASSPATH elements. Optional. <blockquote><pre># Extra Java CLASSPATH elements. Optional.
# export HADOOP_CLASSPATH= # export HADOOP_CLASSPATH=
export HADOOP_CLASSPATH=$HBASE_HOME/build/test:$HBASE_HOME/build/hbase-X.X.X.jar:$HBASE_HOME/build/hbase-X.X.X-test.jar:$HBASE_HOME/conf</pre></blockquote> export HADOOP_CLASSPATH=$HBASE_HOME/build/hbase-X.X.X.jar:$HBASE_HOME/build/hbase-X.X.X-test.jar:$HBASE_HOME/conf:${HBASE_HOME}/lib/zookeeper-X.X.X.jar</pre></blockquote>
<p>Expand <code>$HBASE_HOME</code> in the above appropriately to suit your <p>Expand <code>$HBASE_HOME</code> in the above appropriately to suit your
local environment.</p> local environment.</p>
<p>After copying the above change around your cluster, this is how you would run <p>After copying the above change around your cluster (and restarting), this is
the PerformanceEvaluation MR job to put up 4 clients (Presumes a ready mapreduce how you would run the PerformanceEvaluation MR job to put up 4 clients (Presumes
cluster): a ready mapreduce cluster):
<blockquote><pre>$HADOOP_HOME/bin/hadoop org.apache.hadoop.hbase.PerformanceEvaluation sequentialWrite 4</pre></blockquote> <blockquote><pre>$HADOOP_HOME/bin/hadoop org.apache.hadoop.hbase.PerformanceEvaluation sequentialWrite 4</pre></blockquote>