Skip to content

Commit

Permalink
PHOENIX-6837 Switch to Using the -hadoop3 HBase Artifacts Where Avail…
Browse files Browse the repository at this point in the history
…able

bump HBase 2.5 version to 2.5.2-hadoop3
  • Loading branch information
stoty committed Dec 6, 2022
1 parent 49ae472 commit c8a2668
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
9 changes: 7 additions & 2 deletions BUILDING.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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

0 comments on commit c8a2668

Please sign in to comment.