HBASE-11076 Update refguide on getting 0.94.x to run on hadoop 2.2.0+ (Gustavo Anatoly)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1595269 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2014-05-16 17:12:26 +00:00
parent b42fd10a32
commit ccf33cdb42
1 changed files with 20 additions and 3 deletions

View File

@ -258,10 +258,10 @@ needed for servers to pick up changes (caveat dynamic config. to be described la
<row><entry>Hadoop-2.0.x-alpha </entry><entry>X</entry> <entry>NT</entry> <entry>X</entry><entry>X</entry><entry>X</entry></row>
<row><entry>Hadoop-2.1.0-beta </entry><entry>X</entry> <entry>NT</entry> <entry>S</entry><entry>X</entry><entry>X</entry></row>
<row><entry>Hadoop-2.2.0 </entry><entry>X</entry> <entry>NT<footnote><para>To get 0.94.x to run on hadoop 2.2.0,
you need to change the hadoop 2 and protobuf versions in the <filename>pom.xml</filename> and then
build against the hadoop 2 profile by running something like the following command:
<programlisting>$ mvn clean install assembly:single -Dhadoop.profile=2.0 -DskipTests</programlisting>
you need to change the hadoop 2 and protobuf versions in the <filename>pom.xml</filename>:
<para>
Here is a diff with pom.xml changes:
</para>
<programlisting><![CDATA[$ svn diff pom.xml
Index: pom.xml
===================================================================
@ -285,6 +285,23 @@ Index: pom.xml
<slf4j.version>1.6.1</slf4j.version>
</properties>
<dependencies>]]></programlisting>
<para>The next step is to regenerate Protobuf files and assuming that the Protobuf has been installed:</para>
<itemizedlist>
<listitem>Go to the hbase root folder, using the command line;</listitem>
<listitem>
<para>Type the following commands:</para>
<para>
<programlisting><![CDATA[$ protoc -Isrc/main/protobuf --java_out=src/main/java src/main/protobuf/hbase.proto]]></programlisting>
</para>
<para>
<programlisting><![CDATA[$ protoc -Isrc/main/protobuf --java_out=src/main/java src/main/protobuf/ErrorHandling.proto]]></programlisting>
</para>
</listitem>
</itemizedlist>
<para>
Building against the hadoop 2 profile by running something like the following command:
</para>
<programlisting>$ mvn clean install assembly:single -Dhadoop.profile=2.0 -DskipTests</programlisting>
</para></footnote></entry> <entry>S</entry><entry>S</entry><entry>NT</entry></row>
<row><entry>Hadoop-2.3.x</entry><entry>X</entry> <entry>NT</entry> <entry>S</entry><entry>S</entry><entry>NT</entry></row>
<row><entry>Hadoop-2.4.x</entry><entry>X</entry> <entry>NT</entry> <entry>S</entry><entry>S</entry><entry>S</entry></row>