HBASE-5044 Clarify solution for problem described on http://hbase.apache.org/book/trouble.mapreduce.html

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1513344 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2013-08-13 04:36:25 +00:00
parent a31d8cc4d1
commit ade6149e37
1 changed files with 9 additions and 0 deletions

View File

@ -694,6 +694,15 @@ Caused by: java.io.FileNotFoundException: File _partition.lst does not exist.
</programlisting> </programlisting>
LocalJobRunner means the job is running locally, not on the cluster. LocalJobRunner means the job is running locally, not on the cluster.
</para> </para>
<para>To solve this problem, you should run your MR job with your
<code>HADOOP_CLASSPATH</code> set to include the HBase dependencies.
The "hbase classpath" utility can be used to do this easily.
For example (substitute VERSION with your HBase version):
<programlisting>
HADOOP_CLASSPATH=`hbase classpath` hadoop jar $HBASE_HOME/hbase-VERSION.jar rowcounter usertable
</programlisting>
</para>
<para>See <para>See
<link xlink:href="http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/mapreduce/package-summary.html#classpath"> <link xlink:href="http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/mapreduce/package-summary.html#classpath">
http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/mapreduce/package-summary.html#classpath</link> for more http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/mapreduce/package-summary.html#classpath</link> for more