[
https://issues.apache.org/jira/browse/HBASE-13251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14528378#comment-14528378
]
li xiang commented on HBASE-13251:
----------------------------------
Hi Jerry, thanks for your comments. I uploaded patch v2 with your comments
appended, as :
The command of `hbase mapredcp` can also help you dump the CLASSPATH entries
required by MapReduce, which are the same jars
`TableMapReduceUtil#addDependencyJars` would add.
And you could add them together with HBase conf directory to `HADOOP_CLASSPATH`.
For jobs that do not package their dependencies or call
`TableMapReduceUtil#addDependencyJars`, the following command structure is
necessary:
[source,bash]
----
$ HADOOP_CLASSPATH=`${HBASE_HOME}/bin/hbase mapredcp`:${HBASE_HOME}/conf hadoop
jar MyApp.jar MyJobMainClass -libjars $(${HBASE_HOME}/bin/hbase mapredcp | tr
':' ',') ...
----
Please kindly review. Thanks for your time!
> Correct 'HBase, MapReduce, and the CLASSPATH' section in HBase Ref Guide
> ------------------------------------------------------------------------
>
> Key: HBASE-13251
> URL: https://issues.apache.org/jira/browse/HBASE-13251
> Project: HBase
> Issue Type: Improvement
> Components: documentation
> Reporter: Jerry He
> Assignee: li xiang
> Labels: documentation
> Attachments: HBASE-13251-v1.patch
>
>
> As [~busbey] pointed out in HBASE-13149, we have a section "HBase, MapReduce,
> and the CLASSPATH" in the HBase Ref Guide.
> http://hbase.apache.org/book.html#hbase.mapreduce.classpath
> There are duplication, errors and misinformation in the section.
> Need to cleanup and polish it.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)