[ 
https://issues.apache.org/jira/browse/HBASE-4427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13109854#comment-13109854
 ] 

Roman Shaposhnik commented on HBASE-4427:
-----------------------------------------

@stack, I was hoping other members of the community would chime in (one way or 
the other ;-)) but I guess it is just you and me.

So here's my attempt at convincing you that this is the right thing to do: at 
the end of the day I believe that only an explicitly managed version of ZK can 
occupy a well-known client port of 2181. Every other application that uses an 
embedded ZK to manage some kind of an ensemble for its own purposes has to run 
its copy of ZK on a different port. Otherwise it is a bit like having an 
embedded version of Jetty that would alway bind to 8080 -- not clean and source 
of miscellaneous gotchas downstream when a real application server starts. 

Now, perhaps, to make things extra clear we should introduce an extra property 
called embeddedClientPort or miniZKclientPort and let the existing be.

If you agree with this reasoning, I can attach a patch to make it happen 
according to the scenario I've outlined. If not -- that's also fine, but please 
let me know either way.

> 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

        

Reply via email to