Repository: incubator-slider
Updated Branches:
  refs/heads/develop 3fe140c20 -> 94970e933


SLIDER-690 Add appConfig template for HBase Phoenix deployment


Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/94970e93
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/94970e93
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/94970e93

Branch: refs/heads/develop
Commit: 94970e9337bf8ae18c346ac8843736dc49c82ecd
Parents: 3fe140c
Author: tedyu <[email protected]>
Authored: Mon Dec 1 09:36:03 2014 -0800
Committer: tedyu <[email protected]>
Committed: Mon Dec 1 09:36:03 2014 -0800

----------------------------------------------------------------------
 app-packages/hbase/README.md                    |  5 ++
 .../hbase/appConfig-phoenix-default.json        | 49 ++++++++++++++++++++
 2 files changed, 54 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/94970e93/app-packages/hbase/README.md
----------------------------------------------------------------------
diff --git a/app-packages/hbase/README.md b/app-packages/hbase/README.md
index aed919a..bd19464 100644
--- a/app-packages/hbase/README.md
+++ b/app-packages/hbase/README.md
@@ -51,6 +51,11 @@ You need the HBase version available on local maven repo to 
create the Slider Ap
 Download the tarball for HBase:
   e.g. path to tarball `~/Downloads/hbase-0.98.3-hadoop2-bin.tar.gz`
 
+Note for Phoenix user:
+If you want Phoenix to be deployed, you should repackage HBase tarball such 
that phoenix-server.jar is contained in the lib directory of the tarball.
+e.g. for hbase-0.98.4.2.2.0.0-1799-hadoop2.tar.gz, phoenix-server.jar should 
be copied to:
+ hbase-0.98.4.2.2.0.0-1799-hadoop2/lib
+
 The version of HBase used for the app package can be adjusted by adding a
 flag such as
 

http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/94970e93/app-packages/hbase/appConfig-phoenix-default.json
----------------------------------------------------------------------
diff --git a/app-packages/hbase/appConfig-phoenix-default.json 
b/app-packages/hbase/appConfig-phoenix-default.json
new file mode 100644
index 0000000..d74562f
--- /dev/null
+++ b/app-packages/hbase/appConfig-phoenix-default.json
@@ -0,0 +1,49 @@
+{
+    "schema": "http://example.org/specification/v2.0.0";,
+    "metadata": {
+    },
+    "global": {
+        "application.def": 
".slider/package/HBASE/slider-hbase-app-package-${pkg.version}.zip",
+        "create.default.zookeeper.node": "true",
+        "java_home": "/usr/jdk64/jdk1.7.0_67",
+        "system_configs": "core-site",
+
+        "site.global.app_user": "yarn",
+        "site.global.app_root": 
"${AGENT_WORK_ROOT}/app/install/hbase-${pkg.version}",
+
+        "site.global.ganglia_server_host": "${NN_HOST}",
+        "site.global.ganglia_server_port": "8667",
+        "site.global.ganglia_server_id": "Application1",
+        "site.global.ganglia_enabled":"true",
+
+        "site.global.hbase_instance_name": "instancename",
+        "site.global.hbase_root_password": "secret",
+        "site.global.user_group": "hadoop",
+        "site.global.monitor_protocol": "http",
+        "site.global.hbase_thrift_port": "${HBASE_THRIFT.ALLOCATED_PORT}",
+        "site.global.hbase_thrift2_port": "${HBASE_THRIFT2.ALLOCATED_PORT}",
+        "site.global.hbase_rest_port": "${HBASE_REST.ALLOCATED_PORT}",
+
+        "site.hbase-env.hbase_master_heapsize": "1024m",
+        "site.hbase-env.hbase_regionserver_heapsize": "1024m",
+
+        "site.hbase-site.hbase.rootdir": "${DEFAULT_DATA_DIR}",
+        "site.hbase-site.hbase.superuser": "${USER_NAME}",
+        "site.hbase-site.hbase.tmp.dir": "${AGENT_WORK_ROOT}/work/app/tmp",
+        "site.hbase-site.hbase.local.dir": "${hbase.tmp.dir}/local",
+        "site.hbase-site.hbase.zookeeper.quorum": "${ZK_HOST}",
+        "site.hbase-site.zookeeper.znode.parent": "${DEFAULT_ZK_PATH}",
+        "site.hbase-site.hbase.regionserver.info.port": "0",
+        "site.hbase-site.hbase.defaults.for.version.skip": "true",
+        "site.hbase-site.hbase.region.server.rpc.scheduler.factory.class": 
"org.apache.phoenix.hbase.index.ipc.PhoenixIndexRpcSchedulerFactory",
+        "site.hbase-site.hbase.regionserver.wal.codec": 
"org.apache.hadoop.hbase.regionserver.wal.IndexedWALEditCodec",
+        "site.hbase-site.hbase.master.info.port": 
"${HBASE_MASTER.ALLOCATED_PORT}",
+        "site.hbase-site.hbase.regionserver.port": "0",
+        "site.hbase-site.hbase.master.port": "0"
+    },
+    "components": {
+        "slider-appmaster": {
+            "jvm.heapsize": "1024M"
+        }
+    }
+}

Reply via email to