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
(cherry picked from commit b248ef27e4)
This commit is contained in:
bhujay 2018-08-26 12:59:51 +05:30 committed by Luigi Toscano
parent bda0e09300
commit f8e7026561
3 changed files with 5 additions and 5 deletions

View File

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

View File

@ -152,7 +152,7 @@ class AmbariPluginProvider(p.ProvisioningPluginBase):
p_common.HBASE_MASTER)
if hbase_master:
info[p_common.HBASE_MASTER] = {
"Web UI": "http://%s:60010" % hbase_master.get_ip_or_dns_name()
"Web UI": "http://%s:16010" % hbase_master.get_ip_or_dns_name()
}
falcon = plugin_utils.get_instance(cluster, p_common.FALCON_SERVER)
if falcon:
@ -240,8 +240,8 @@ class AmbariPluginProvider(p.ProvisioningPluginBase):
p_common.DRPC_SERVER: [3772, 3773],
p_common.FALCON_SERVER: [15000],
p_common.FLUME_HANDLER: [8020, 41414],
p_common.HBASE_MASTER: [60000, 60010],
p_common.HBASE_REGIONSERVER: [60020, 60030],
p_common.HBASE_MASTER: [16000, 16010],
p_common.HBASE_REGIONSERVER: [16020, 16030],
p_common.HISTORYSERVER: [10020, 19888],
p_common.HIVE_METASTORE: [9933],
p_common.HIVE_SERVER: [9999, 10000],

View File

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