我从 cloudera 5.3.3 发行版安装了 hbase,当我运行 hbase 时,一切似乎都运行良好......
当我尝试通过/etc/hbase/conf/hbase-site.xml 分配 hbase.master.port 时,它不会从那里选择它。
我从主节点信息中看到这个 http://MASTERNODE:60010/conf
<property>
<name>hbase.master.port</name>
<value>0</value>
<source>programatically</source>
</property>
hbase 分布:0.98.6-cdh5.3.3
这个“以编程方式”是什么意思,我如何禁用/覆盖它?
最佳答案
回答我自己的问题 :(
因为我刚刚发现 hbase 独立模式不考虑 hbase.master.port
https://github.com/cloudera/hbase/blob/cdh4.5.0-release/src/main/java/org/apache/hadoop/hbase/LocalHBaseCluster.java#L141
分配端口的唯一方法是设置,至少是伪分布式模式, 看到这个: http://www.cloudera.com/content/cloudera/en/documentation/core/v5-2-x/topics/cdh_ig_hbase_pseudo_configure.html
关于hadoop - hbase.master.port 以编程方式覆盖?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31203470/