You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@slider.apache.org by te...@apache.org on 2014/12/19 22:47:40 UTC
incubator-slider git commit: SLIDER-731 Allow more parameters to be
passed to HBase REST gateway
Repository: incubator-slider
Updated Branches:
refs/heads/develop 72983bb05 -> 279e43749
SLIDER-731 Allow more parameters to be passed to HBase REST gateway
Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/279e4374
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/279e4374
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/279e4374
Branch: refs/heads/develop
Commit: 279e4374914757620f572b4b2eb3acf1edcf6f9f
Parents: 72983bb
Author: tedyu <yu...@gmail.com>
Authored: Fri Dec 19 13:47:31 2014 -0800
Committer: tedyu <yu...@gmail.com>
Committed: Fri Dec 19 13:47:31 2014 -0800
----------------------------------------------------------------------
app-packages/hbase/package/scripts/hbase_service.py | 8 +++++++-
app-packages/hbase/package/scripts/params.py | 3 +++
2 files changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/279e4374/app-packages/hbase/package/scripts/hbase_service.py
----------------------------------------------------------------------
diff --git a/app-packages/hbase/package/scripts/hbase_service.py b/app-packages/hbase/package/scripts/hbase_service.py
index a963685..ff67670 100644
--- a/app-packages/hbase/package/scripts/hbase_service.py
+++ b/app-packages/hbase/package/scripts/hbase_service.py
@@ -36,7 +36,13 @@ def hbase_service(
if action == 'start':
daemon_cmd = format("env HBASE_IDENT_STRING={hbase_user} {cmd} start {role}")
if name == 'rest':
- daemon_cmd = format("{daemon_cmd} -p {rest_port}")
+ infoport = ""
+ if not rest_infoport == "":
+ infoport = " --infoport {rest_infoport}"
+ readonly = ""
+ if not rest_readonly == "":
+ readonly = " --readonly"
+ daemon_cmd = format("{daemon_cmd} -p {rest_port}" + infoport + readonly)
elif name == 'thrift':
queue = ""
if not thrift_queue == "":
http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/279e4374/app-packages/hbase/package/scripts/params.py
----------------------------------------------------------------------
diff --git a/app-packages/hbase/package/scripts/params.py b/app-packages/hbase/package/scripts/params.py
index d370d15..b6ab915 100644
--- a/app-packages/hbase/package/scripts/params.py
+++ b/app-packages/hbase/package/scripts/params.py
@@ -61,6 +61,9 @@ ganglia_server_host = default('/configurations/global/ganglia_server_host', '')
ganglia_server_port = default('/configurations/global/ganglia_server_port', '8663')
rest_port = config['configurations']['global']['hbase_rest_port']
+rest_infoport = config['configurations']['global']['hbase_rest_infoport']
+rest_readonly = config['configurations']['global']['hbase_rest_readonly']
+
thrift_port = config['configurations']['global']['hbase_thrift_port']
thrift_keepalive_sec = config['configurations']['global']['hbase_thrift_keepalive_sec']
thrift_infoport = config['configurations']['global']['hbase_thrift_infoport']