summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbhujay <bhujay.bhatta@yahoo.com>2018-08-26 12:59:51 +0530
committerbhujay <bhujay.bhatta@yahoo.com>2018-08-27 12:25:00 +0530
commitb248ef27e475020aa7087e2a8e7d07781d6f437c (patch)
treef3ace433d0460a56e18028d23a7d3c77dd72f132
parentd7003936579ea3f93d998a0fda88d497f2d6d58b (diff)
Correct Hbase ports in Ambari plugin
port number for HBase configured in Sahara starts with 600xx where as hortonworks ambari configures these ports on the hbase master and region servers with 160xx.Although Ambari will start the master server with the 160xx port, clients can't connect them due to improper security rules.As a result hbase master web info port link in the cluster general info page doesn't work.HBase region server won't start. This patch sets the HBase ports correctly for Ambari Plugin. Change-Id: Ic13944ed729c0840578784f50a53f17b0706b62c Story: #2003562 Task: #24853
Notes
Notes (review): Code-Review+2: Luigi Toscano <ltoscano@redhat.com> Code-Review+2: Telles Mota Vidal Nóbrega <tenobreg@redhat.com> Workflow+1: Telles Mota Vidal Nóbrega <tenobreg@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Mon, 27 Aug 2018 13:36:00 +0000 Reviewed-on: https://review.openstack.org/596578 Project: openstack/sahara Branch: refs/heads/master
-rw-r--r--sahara/plugins/ambari/ha_helper.py2
-rw-r--r--sahara/plugins/ambari/plugin.py6
-rw-r--r--sahara/tests/unit/plugins/ambari/test_ha_helper.py2
3 files changed, 5 insertions, 5 deletions
diff --git a/sahara/plugins/ambari/ha_helper.py b/sahara/plugins/ambari/ha_helper.py
index f02bfce..92eec3d 100644
--- a/sahara/plugins/ambari/ha_helper.py
+++ b/sahara/plugins/ambari/ha_helper.py
@@ -229,7 +229,7 @@ def _confgure_hbase_site(cluster, blueprint):
229 props["hbase.regionserver.global.memstore.lowerLimit"] = "0.38" 229 props["hbase.regionserver.global.memstore.lowerLimit"] = "0.38"
230 props["hbase.regionserver.global.memstore.upperLimit"] = "0.4" 230 props["hbase.regionserver.global.memstore.upperLimit"] = "0.4"
231 props["hbase.regionserver.handler.count"] = "60" 231 props["hbase.regionserver.handler.count"] = "60"
232 props["hbase.regionserver.info.port"] = "60030" 232 props["hbase.regionserver.info.port"] = "16030"
233 props["hbase.regionserver.storefile.refresh.period"] = "20" 233 props["hbase.regionserver.storefile.refresh.period"] = "20"
234 234
235 props["hbase.rootdir"] = "hdfs://hdfs-ha/apps/hbase/data" 235 props["hbase.rootdir"] = "hdfs://hdfs-ha/apps/hbase/data"
diff --git a/sahara/plugins/ambari/plugin.py b/sahara/plugins/ambari/plugin.py
index d59059e..f5203db 100644
--- a/sahara/plugins/ambari/plugin.py
+++ b/sahara/plugins/ambari/plugin.py
@@ -152,7 +152,7 @@ class AmbariPluginProvider(p.ProvisioningPluginBase):
152 p_common.HBASE_MASTER) 152 p_common.HBASE_MASTER)
153 if hbase_master: 153 if hbase_master:
154 info[p_common.HBASE_MASTER] = { 154 info[p_common.HBASE_MASTER] = {
155 "Web UI": "http://%s:60010" % hbase_master.get_ip_or_dns_name() 155 "Web UI": "http://%s:16010" % hbase_master.get_ip_or_dns_name()
156 } 156 }
157 falcon = plugin_utils.get_instance(cluster, p_common.FALCON_SERVER) 157 falcon = plugin_utils.get_instance(cluster, p_common.FALCON_SERVER)
158 if falcon: 158 if falcon:
@@ -240,8 +240,8 @@ class AmbariPluginProvider(p.ProvisioningPluginBase):
240 p_common.DRPC_SERVER: [3772, 3773], 240 p_common.DRPC_SERVER: [3772, 3773],
241 p_common.FALCON_SERVER: [15000], 241 p_common.FALCON_SERVER: [15000],
242 p_common.FLUME_HANDLER: [8020, 41414], 242 p_common.FLUME_HANDLER: [8020, 41414],
243 p_common.HBASE_MASTER: [60000, 60010], 243 p_common.HBASE_MASTER: [16000, 16010],
244 p_common.HBASE_REGIONSERVER: [60020, 60030], 244 p_common.HBASE_REGIONSERVER: [16020, 16030],
245 p_common.HISTORYSERVER: [10020, 19888], 245 p_common.HISTORYSERVER: [10020, 19888],
246 p_common.HIVE_METASTORE: [9933], 246 p_common.HIVE_METASTORE: [9933],
247 p_common.HIVE_SERVER: [9999, 10000], 247 p_common.HIVE_SERVER: [9999, 10000],
diff --git a/sahara/tests/unit/plugins/ambari/test_ha_helper.py b/sahara/tests/unit/plugins/ambari/test_ha_helper.py
index f4cb52f..b373872 100644
--- a/sahara/tests/unit/plugins/ambari/test_ha_helper.py
+++ b/sahara/tests/unit/plugins/ambari/test_ha_helper.py
@@ -237,7 +237,7 @@ class HAHelperTestCase(base.SaharaTestCase):
237 "hbase.regionserver.global.memstore.lowerLimit": "0.38", 237 "hbase.regionserver.global.memstore.lowerLimit": "0.38",
238 "hbase.regionserver.global.memstore.upperLimit": "0.4", 238 "hbase.regionserver.global.memstore.upperLimit": "0.4",
239 "hbase.regionserver.handler.count": "60", 239 "hbase.regionserver.handler.count": "60",
240 "hbase.regionserver.info.port": "60030", 240 "hbase.regionserver.info.port": "16030",
241 "hbase.regionserver.storefile.refresh.period": "20", 241 "hbase.regionserver.storefile.refresh.period": "20",
242 "hbase.rootdir": "hdfs://hdfs-ha/apps/hbase/data", 242 "hbase.rootdir": "hdfs://hdfs-ha/apps/hbase/data",
243 "hbase.security.authentication": "simple", 243 "hbase.security.authentication": "simple",