Repository: incubator-slider Updated Branches: refs/heads/develop e4723f5e5 -> 5bb80a42b
SLIDER-199. Modify HBase package README to also add a manual way to create .zip packages Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/5bb80a42 Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/5bb80a42 Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/5bb80a42 Branch: refs/heads/develop Commit: 5bb80a42b1f5d6ea0c37d54b9dcb3f2ebf9251e1 Parents: e4723f5 Author: Sumit Mohanty <smoha...@hortonworks.com> Authored: Tue Jul 1 17:42:43 2014 -0700 Committer: Sumit Mohanty <smoha...@hortonworks.com> Committed: Tue Jul 1 17:42:48 2014 -0700 ---------------------------------------------------------------------- app-packages/hbase/README.txt | 54 +++++++++++++++++++++++++------------- pom.xml | 1 - 2 files changed, 36 insertions(+), 19 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/5bb80a42/app-packages/hbase/README.txt ---------------------------------------------------------------------- diff --git a/app-packages/hbase/README.txt b/app-packages/hbase/README.txt index a25ff8c..1d547a2 100644 --- a/app-packages/hbase/README.txt +++ b/app-packages/hbase/README.txt @@ -15,40 +15,58 @@ limitations under the License. --> -How to create a Slider package for HBase? +Create Slider App Package for HBase + +While appConfig.json and resources.json are not required for the package they +work well as the default configuration for Slider apps. So it is advisable that +when you create an application package for Slider, include sample/default +resources.json and appConfig.json for a minimal Yarn cluster. + +OPTION-I: Use mvn command +OPTION-II: Manual + +****** OPTION - I (use mvn command) ** +You need the HBase version available on local maven repo to create the Slider App Package for HBase. The version of HBase used for the app package can be adjusted by adding a flag such as -Dhbase.version=0.98.3 -Copy the tarball for HBase: - cp ~/Downloads/hbase-0.98.3-hadoop2-bin.tar.gz package/files/ +Download the tarball for HBase: + e.g. path to tarball ~/Downloads/hbase-0.98.3-hadoop2-bin.tar.gz Use the following command to install HBase tarball locally: mvn install:install-file -Dfile=<path-to-tarball> -DgroupId=org.apache.hbase -DartifactId=hbase -Dversion=0.98.3-hadoop2 -Dclassifier=bin -Dpackaging=tar.gz -After HBase tarball is publised locally in maven repository, you can use the following command: +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 -Create a zip package at the root of the package (<slider enlistment>/app-packages/hbase/) - zip -r hbase-v098.zip . - Verify the content using zip -Tv apache-slider-hbase-*.zip -While appConfig.json and resources.json are not required for the package they -work well as the default configuration for Slider apps. So it is advisable that -when you create an application package for Slider, include sample/default -resources.json and appConfig.json for a minimal Yarn cluster. +If an HBase version older than 0.98.3 is desired, it must be installed in the local maven repo. -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. -**Note that the LICENSE.txt and NOTICE.txt that are bundled with the app -package are designed for HBase 0.98.3 only and may need to be modified to be -applicable for other versions of the app package. +****** OPTION - II (manual) ** +The Slider App Package for HBase can also be created manually. -A less descriptive file name can be specified with --Dapp.package.name=HBase_98dot3 which would create a file HBase_98dot3.zip. +Download the tarball for HBase: + e.g. path to tarball ~/Downloads/hbase-0.98.3-hadoop2-bin.tar.gz + +Copy the hbase tarball to package/files + cp ~/Downloads/hbase-0.98.3-hadoop2-bin.tar.gz package/files + +Edit appConfig.json/metainfo.xml + Replace 4 occurrences of "${hbase.version}" with the hbase version values such as "0.98.3-hadoop2" + Replace 1 occurrence of "${app.package.name}" with the desired app package name, e.g. "hbase-v098" + +Create a zip package at the root of the package (<slider enlistment>/app-packages/hbase/) + zip -r hbase-v098.zip . + +Verify the content using + zip -Tv hbase-v098.zip http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/5bb80a42/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index e1f772b..460fb0d 100644 --- a/pom.xml +++ b/pom.xml @@ -39,7 +39,6 @@ <module>slider-core</module> <module>slider-agent</module> <module>app-packages/accumulo</module> - <module>app-packages/hbase</module> <module>slider-assembly</module> <module>slider-funtest</module> <module>slider-providers/hbase/slider-hbase-provider</module>