Browse Source

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
tags/10.0.0.0b1
bhujay 10 months ago
parent
commit
b248ef27e4

+ 1
- 1
sahara/plugins/ambari/ha_helper.py View File

@@ -229,7 +229,7 @@ def _confgure_hbase_site(cluster, blueprint):
229 229
     props["hbase.regionserver.global.memstore.lowerLimit"] = "0.38"
230 230
     props["hbase.regionserver.global.memstore.upperLimit"] = "0.4"
231 231
     props["hbase.regionserver.handler.count"] = "60"
232
-    props["hbase.regionserver.info.port"] = "60030"
232
+    props["hbase.regionserver.info.port"] = "16030"
233 233
     props["hbase.regionserver.storefile.refresh.period"] = "20"
234 234
 
235 235
     props["hbase.rootdir"] = "hdfs://hdfs-ha/apps/hbase/data"

+ 3
- 3
sahara/plugins/ambari/plugin.py View File

@@ -152,7 +152,7 @@ class AmbariPluginProvider(p.ProvisioningPluginBase):
152 152
                                                  p_common.HBASE_MASTER)
153 153
         if hbase_master:
154 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 157
         falcon = plugin_utils.get_instance(cluster, p_common.FALCON_SERVER)
158 158
         if falcon:
@@ -240,8 +240,8 @@ class AmbariPluginProvider(p.ProvisioningPluginBase):
240 240
             p_common.DRPC_SERVER: [3772, 3773],
241 241
             p_common.FALCON_SERVER: [15000],
242 242
             p_common.FLUME_HANDLER: [8020, 41414],
243
-            p_common.HBASE_MASTER: [60000, 60010],
244
-            p_common.HBASE_REGIONSERVER: [60020, 60030],
243
+            p_common.HBASE_MASTER: [16000, 16010],
244
+            p_common.HBASE_REGIONSERVER: [16020, 16030],
245 245
             p_common.HISTORYSERVER: [10020, 19888],
246 246
             p_common.HIVE_METASTORE: [9933],
247 247
             p_common.HIVE_SERVER: [9999, 10000],

+ 1
- 1
sahara/tests/unit/plugins/ambari/test_ha_helper.py View File

@@ -237,7 +237,7 @@ class HAHelperTestCase(base.SaharaTestCase):
237 237
                 "hbase.regionserver.global.memstore.lowerLimit": "0.38",
238 238
                 "hbase.regionserver.global.memstore.upperLimit": "0.4",
239 239
                 "hbase.regionserver.handler.count": "60",
240
-                "hbase.regionserver.info.port": "60030",
240
+                "hbase.regionserver.info.port": "16030",
241 241
                 "hbase.regionserver.storefile.refresh.period": "20",
242 242
                 "hbase.rootdir": "hdfs://hdfs-ha/apps/hbase/data",
243 243
                 "hbase.security.authentication": "simple",

Loading…
Cancel
Save