You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Jeffrey Zhong (JIRA)" <ji...@apache.org> on 2014/04/09 00:33:17 UTC
[jira] [Resolved] (HBASE-10937) How to run CsvBulkLoadTool of
Phoenix 4.0
[ https://issues.apache.org/jira/browse/HBASE-10937?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeffrey Zhong resolved HBASE-10937.
-----------------------------------
Resolution: Fixed
> How to run CsvBulkLoadTool of Phoenix 4.0
> -----------------------------------------
>
> Key: HBASE-10937
> URL: https://issues.apache.org/jira/browse/HBASE-10937
> Project: HBase
> Issue Type: Bug
> Components: documentation
> Reporter: Jeffrey Zhong
> Assignee: Jeffrey Zhong
>
> There is known issue to run MR job for hbase0.96+ version. Details at section “Notice to Mapreduce users of HBase 0.96.1 and above” https://hbase.apache.org/book.html
> Basically we need to put hbase-protocol*.jar before hadoop loads protobuf-java jar. I updated our documentation on http://phoenix.incubator.apache.org/bulk_dataload.html on how to use CsvBulkLoadTool for Phoenix 4.0 as following:
> {noformat}
> HADOOP_CLASSPATH=$(hbase mapredcp)::/path/to/hbase/conf hadoop jar phoenix-4.0.0-incubating-client.jar org.apache.phoenix.mapreduce.CsvBulkLoadTool --table EXAMPLE --input /data/example.csv
> {noformat}
> OR
> {noformat}
> HADOOP_CLASSPATH=/path/to/hbase-protocol.jar:/path/to/hbase/conf hadoop jar phoenix-4.0.0-incubating-client.jar org.apache.phoenix.mapreduce.CsvBulkLoadTool --table EXAMPLE --input /data/example.csv
> {noformat}
> Thanks.
--
This message was sent by Atlassian JIRA
(v6.2#6252)