tree: 9fce638ecde184cdc89ceaeb5a1c455d3d29b37c [path history] [tgz]
  1. README.md
  2. appConfig-default.json
  3. appConfig-phoenix-default.json
  4. appConfig-secured-default.json
  5. configuration/
  6. get-hbase-site.py
  7. get-hbase-site.sh
  8. jmx_metrics.json
  9. links.py
  10. metainfo.xml
  11. package/
  12. pom.xml
  13. resources-default.json
  14. src/
  15. timeline_metrics.json
app-packages/hbase/README.md

Create Slider App Package for HBase

appConfig-default.json and resources-default.json are not required to be packaged. These files are included as reference configuration for Slider apps and are suitable for a one-node cluster.

OPTION-I: Use a downloaded tarball OPTION-II: Use the tarball from the local repository

OPTION - I

To create the app package you will need the HBase tarball and invoke mvn command with appropriate parameters.

Command:

mvn clean package -Phbase-app-package -Dhbase.version=<version>
   -Dpkg.name=<file name of app tarball> -Dpkg.src=<folder location where the pkg is available>

Example:

mvn clean package -Phbase-app-package -Dpkg.version=0.98.5-hadoop2
  -Dhbase.version=hbase-0.98.5-hadoop2-bin.tar.gz
  -Dpkg.src=/Users/user1/Downloads/0.98.5-hadoop2

App package can be found in

app-packages/hbase/target/slider-hbase-app-package-${slider.version}.zip

OPTION - II

You need the HBase version available on local maven repo to create the Slider App Package for HBase.

Download the tarball for HBase: e.g. path to tarball ~/Downloads/hbase-0.98.3-hadoop2-bin.tar.gz

The version of HBase used for the app package can be adjusted by adding a flag such as

-Dhbase.version=0.98.3-hadoop2

Use the following command to install HBase tarball locally (under local workspace of HBase repo):

mvn install:install-file -Dfile=<path-to-tarball> -DgroupId=org.apache.hbase -DartifactId=hbase -Dversion=0.98.3-hadoop2 -Dclassifier=bin -Dpackaging=tar.gz

You may need to copy the hbase tarball to the following location if the above step doesn't publish the tarball:

~/.m2/repository/org/apache/hbase/hbase/0.98.3-hadoop2/

After HBase tarball is published locally in maven repository, you can use the following command:

mvn clean package -DskipTests -Phbase-app-package

App package can be found in

app-packages/hbase/target/apache-slider-hbase-${hbase.version}-app-package-${slider.version}.zip

If an HBase version older than 0.98.3 is desired, it must be installed in the local maven repo.

A less descriptive file name can be specified with

-Dapp.package.name=HBase_98dot3 which would create a file HBase_98dot3.zip.

Verifying the content

Verify the content using

zip -Tv apache-slider-hbase-*.zip