hbase.master.port overridden programmatically?
Asked Answered
P

3

6

I installed hbase from cloudera 5.3.3 distribution and as I run the hbase everything seems to be working fine...

When I try assign hbase.master.port via /etc/hbase/conf/hbase-site.xml it does not pick it from there.

I see this from master node info http://MASTERNODE:60010/conf

<property>
  <name>hbase.master.port</name>
  <value>0</value>
  <source>programatically</source>
</property>

hbase distribution: 0.98.6-cdh5.3.3

What does this 'programmatically' mean and how can I disable/override it ?

Peaked answered 3/7, 2015 at 9:36 Comment(2)
What are you trying to achive here, are you trying to override Hbase master default port from 60010 ?Phenolic
60010 is hbase.master.info.port ,and master.info.port is now changing everytime with every restart, this way hard to get good network approvalPeaked
P
5

answering my own question :(

as i just figured out the hbase standalone mode do not takes hbase.master.port into account
https://github.com/cloudera/hbase/blob/cdh4.5.0-release/src/main/java/org/apache/hadoop/hbase/LocalHBaseCluster.java#L141

standalone mode: http://www.cloudera.com/content/cloudera/en/documentation/core/v5-2-x/topics/cdh_ig_hbase_standalone_start.html

only way to assign a port is to setup ,at least a Pseudo-Distributed Mode, see this: http://www.cloudera.com/content/cloudera/en/documentation/core/v5-2-x/topics/cdh_ig_hbase_pseudo_configure.html

Peaked answered 9/7, 2015 at 8:8 Comment(1)
(first link is broken now) github.com/apache/hbase/blob/0.98/hbase-server/src/main/java/…Ninetta
H
2

This means, its being set in some app/code.
Are you using Cloduera Manager?
You will need to set it in Cloduera Manager. If you are not using Cloudera Manager, then you will need to modify hbase-site.xml for HBase cluster and do a reboot of HBase cluster.

Hillari answered 3/7, 2015 at 19:18 Comment(3)
Hi Anil, I am not using cloudera manager, and I tried to use hbase-site.xml to configure it. Restarting hbase-master did not help.Peaked
did you modify hbase-site.xml of node that is running hbase master? Is there any paritcular reason you dont want to use Cloudera Manager? It will make administration very easy.Hillari
ok. in that case, can you post this on cloudera forums. This is more of a question to cloudera(groups.google.com/a/cloudera.org/forum/#!forum/cdh-user) at this point.Hillari
N
1

Since version 1.4.2 there's hbase.localcluster.assign.random.ports option which prevents ports overriding

Ninetta answered 23/6, 2022 at 10:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.