blob: 1d5c4bbaecc0a7c0ed717da81e6eefc1a1d456f0 [file] [log] [blame]
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.
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 - I (use mvn command) **
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
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:
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
Verify the content using
zip -Tv apache-slider-hbase-*.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 which would create a file
****** OPTION - II (manual) **
The Slider App Package for HBase can also be created manually.
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 "${}" 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 .
Verify the content using
zip -Tv