You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by je...@apache.org on 2014/04/09 00:26:04 UTC
svn commit: r1585857 - in /incubator/phoenix/site:
publish/bulk_dataload.html source/src/site/markdown/bulk_dataload.md
Author: jeffreyz
Date: Tue Apr 8 22:26:03 2014
New Revision: 1585857
URL: http://svn.apache.org/r1585857
Log:
Update bulk_dataload.md on how to use CsvBulkLoadTool for Phoenix 4.0
Modified:
incubator/phoenix/site/publish/bulk_dataload.html
incubator/phoenix/site/source/src/site/markdown/bulk_dataload.md
Modified: incubator/phoenix/site/publish/bulk_dataload.html
URL: http://svn.apache.org/viewvc/incubator/phoenix/site/publish/bulk_dataload.html?rev=1585857&r1=1585856&r2=1585857&view=diff
==============================================================================
--- incubator/phoenix/site/publish/bulk_dataload.html (original)
+++ incubator/phoenix/site/publish/bulk_dataload.html Tue Apr 8 22:26:03 2014
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<!--
- Generated by Apache Maven Doxia at 2014-04-02
+ Generated by Apache Maven Doxia at 2014-04-08
Rendered using Reflow Maven Skin 1.1.0 (http://andriusvelykis.github.io/reflow-maven-skin)
-->
<html xml:lang="en" lang="en">
@@ -59,14 +59,14 @@
<li ><a href="source.html" title="Source Repository">Source Repository</a></li>
<li ><a href="issues.html" title="Issue Tracking">Issue Tracking</a></li>
<li ><a href="download.html" title="Download">Download</a></li>
- <li class="divider"/>
+ <li ><a href="http:divider" title=""></a></li>
<li ><a href="http://www.apache.org/licenses/" title="License" class="externalLink">License</a></li>
<li ><a href="http://www.apache.org/foundation/sponsorship.html" title="Sponsorship" class="externalLink">Sponsorship</a></li>
<li ><a href="http://www.apache.org/foundation/thanks.html" title="Thanks" class="externalLink">Thanks</a></li>
<li ><a href="http://www.apache.org/security/" title="Security" class="externalLink">Security</a></li>
</ul>
</li>
- <li class="dropdown">
+ <li class="dropdown active">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Using <b class="caret"></b></a>
<ul class="dropdown-menu">
<li ><a href="faq.html" title="F.A.Q.">F.A.Q.</a></li>
@@ -74,7 +74,7 @@
<li ><a href="building.html" title="Building">Building</a></li>
<li ><a href="tuning.html" title="Tuning">Tuning</a></li>
<li ><a href="upgrade_from_2_2.html" title="Upgrade from 2.2">Upgrade from 2.2</a></li>
- <li class="divider"/>
+ <li ><a href="http:divider" title=""></a></li>
<li ><a href="secondary_indexing.html" title="Secondary Indexes">Secondary Indexes</a></li>
<li ><a href="joins.html" title="Joins">Joins</a></li>
<li ><a href="views.html" title="Views">Views</a></li>
@@ -86,7 +86,7 @@
<li ><a href="dynamic_columns.html" title="Dynamic Columns">Dynamic Columns</a></li>
<li ><a href="skip_scan.html" title="Skip Scan">Skip Scan</a></li>
<li class="active"><a href="" title="Bulk Loading">Bulk Loading</a></li>
- <li class="divider"/>
+ <li ><a href="http:divider" title=""></a></li>
<li ><a href="phoenix_on_emr.html" title="Amazon EMR Support">Amazon EMR Support</a></li>
<li ><a href="flume.html" title="Apache Flume Plugin">Apache Flume Plugin</a></li>
<li ><a href="pig_integration.html" title="Apache Pig Integration">Apache Pig Integration</a></li>
@@ -189,6 +189,16 @@
<pre>hadoop jar phoenix-3.0.0-incubating-client.jar org.apache.phoenix.mapreduce.CsvBulkLoadTool --table EXAMPLE --input /data/example.csv
</pre>
</div>
+ <p>When using Phoenix 4.0 and above, there is a known HBase issue(âNotice to Mapreduce users of HBase 0.96.1 and aboveâ <a class="externalLink" href="https://hbase.apache.org/book.html)">https://hbase.apache.org/book.html)</a>, you should use following command:</p>
+ <div class="source">
+ <pre>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
+</pre>
+ </div>
+ <p>OR</p>
+ <div class="source">
+ <pre>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
+</pre>
+ </div>
<p>The input file must be present on HDFS (not the local filesystem where the command is being run). </p>
<p>The following parameters can be used with the MapReduce loader.</p>
<table border="0" class="bodyTable table table-striped table-hover">
Modified: incubator/phoenix/site/source/src/site/markdown/bulk_dataload.md
URL: http://svn.apache.org/viewvc/incubator/phoenix/site/source/src/site/markdown/bulk_dataload.md?rev=1585857&r1=1585856&r2=1585857&view=diff
==============================================================================
--- incubator/phoenix/site/source/src/site/markdown/bulk_dataload.md (original)
+++ incubator/phoenix/site/source/src/site/markdown/bulk_dataload.md Tue Apr 8 22:26:03 2014
@@ -45,6 +45,14 @@ The MapReduce loader is launched using t
hadoop jar phoenix-3.0.0-incubating-client.jar org.apache.phoenix.mapreduce.CsvBulkLoadTool --table EXAMPLE --input /data/example.csv
+When using Phoenix 4.0 and above, there is a known HBase issue("Notice to Mapreduce users of HBase 0.96.1 and above" https://hbase.apache.org/book.html), you should use following command:
+
+ 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
+
+OR
+
+ 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
+
The input file must be present on HDFS (not the local filesystem where the command is being run).
The following parameters can be used with the MapReduce loader.