[
https://issues.apache.org/jira/browse/HBASE-4427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13113635#comment-13113635
]
Jean-Daniel Cryans commented on HBASE-4427:
-------------------------------------------
Sorry I missed it:
bq. I'm still to new to HBase to know whether 3d party clients that are built
on top of HBase APIs are forced to read hbase-default.xml or not. Would
appreciate if somebody let me know.
Yes because it's included in the HBase jar.
bq. Your concerned is answered in the comment #4 (look for embeddedClientPort
or miniZKclientPort)
To which I answered:
bq. Actually even a local client wouldn't know which port to look for since the
config for whether HBase manages zk is in hbase-env.sh
Lars mentioned a solution which would be to have the client trying to connect
to both ports (I guess the embedded one first), but it's getting awfully
complicated for everyone while just trying to resolve a corner case.
bq. Of course all of this is totally predicated on all the clients always
paying attention to hbase-default.xml.
It's quite rare that you have to change the port in there, but in any case the
HBase client will load any file named "hbase-site.xml" and "hbase-default.xml"
if it's present on the classpath.
> It would help to run a standalone HBase's ZK on a different port
> ----------------------------------------------------------------
>
> Key: HBASE-4427
> URL: https://issues.apache.org/jira/browse/HBASE-4427
> Project: HBase
> Issue Type: Improvement
> Components: zookeeper
> Affects Versions: 0.90.4
> Reporter: Roman Shaposhnik
> Assignee: Roman Shaposhnik
> Priority: Minor
>
> It would be extremely helpful to have standalone HBase default to a
> non-standard port for running its embedded ZK. This would help to run HBase
> on the same host where a legitimate fully distributed ZK server, etc.
> It seems that the following addition to hbase-default.xml would be enough to
> make it happen:
> {noformat}
> + <property>
> + <name>hbase.zookeeper.property.clientPort</name>
> + <value>4181</value>
> + </property>
> {noformat}
> This will take care of the master/client for HBase and can be overridden in
> hbase-site if needed.
> Thoughts?
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira