Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to Using the -hadoop3 HBase Artifacts Where Available #1542

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 7 additions & 2 deletions BUILDING.md
Expand Up @@ -32,8 +32,13 @@ HBase 2 and Hadoop 3
Phoenix 5.x requires Hadoop 3. While HBase 2.x is compatible with Hadoop 3, the public Maven HBase
artifacts are built with Hadoop 2, and are not.

For this reason, when building Phoenix, you need to rebuild
HBase with Hadoop 3, and install it to the local maven repo of the build host.
With the 2.5.2 release HBase has started releasing Maven artifacts built with Hadoop3.
Where available, use the Maven artifacts with the `-hadoop3` postfix in the version,
i.e. `2.5.2-hadoop3`, and ignore the rest of this section.
For HBase 2.5, Phoenix already uses the -hadoop3 version by default.

For HBase versions where hadoop3 artifacts are not available, you need to rebuild HBase with
Hadoop 3, and install it to the local maven repo of the build host.

`$ wget https://downloads.apache.org/hbase/2.4.15/hbase-2.4.15-src.tar.gz`
`$ tar xfvz hbase-2.4.15-src.tar.gz`
Expand Down
5 changes: 5 additions & 0 deletions dev/rebuild_hbase.sh
Expand Up @@ -38,6 +38,11 @@ else
HBASE_VERSION="$1"
fi

if [[ "$HBASE_VERSION" == *"-hadoop3" ]]; then
echo "Hbase version is already compiled for Hadoop3. Skipping rebuild"
exit 0;
fi

# The name of the Apache Hbase source file
HBASE_SOURCE_NAME="hbase-$HBASE_VERSION-src.tar.gz"
# The relative path on the ASF mirrors for the Hbase source file
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -86,7 +86,7 @@
<hbase-2.3.runtime.version>2.3.7</hbase-2.3.runtime.version>
<hbase-2.4.0.runtime.version>2.4.0</hbase-2.4.0.runtime.version>
<hbase-2.4.runtime.version>2.4.15</hbase-2.4.runtime.version>
<hbase-2.5.runtime.version>2.5.0</hbase-2.5.runtime.version>
<hbase-2.5.runtime.version>2.5.2-hadoop3</hbase-2.5.runtime.version>

<!-- General Properties -->
<antlr-input.dir>src/main/antlr3</antlr-input.dir>
Expand Down