[
https://issues.apache.org/jira/browse/SOLR-5172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13743275#comment-13743275
]
Mark Miller commented on SOLR-5172:
-----------------------------------
bq. An embedded zkserver is also optionally used in zkCLI.java
This was for test /dev purposes only - see the help description - useful when
scripting stuff when there is only a single local zk instance - it lets you
start zk, do some stuff, shut it down, and then start Solr with embedded zk on
a single instance. This is how you can load config files in your script before
you start embedded zk and without bootstrapping. It's not for users. Also, you
pass the Solr port because ZK runs at the Solr port + 1000 by default.
bq. But this port is then ignored by the next line, which starts a ZkClient
connecting to whatever has been passed as the -zkhost parameter.
You need to simply use matching ports - since its just a script/dev/test
feature, it's a simple way to indicate you want to start the server and the
code dones't have to parse the port from the zk address - no big deal really,
but as a non user feature, the current impl was just simple.
bq. removes the support for ZK ensembles when running embedded ZK,
I dont know about this - I'd like to hear from [[email protected]] and/or
others. I don't know that we should just remove this feature in a point release.
> Start embedded zk servers before CoreContainer loads
> ----------------------------------------------------
>
> Key: SOLR-5172
> URL: https://issues.apache.org/jira/browse/SOLR-5172
> Project: Solr
> Issue Type: Improvement
> Reporter: Alan Woodward
> Priority: Minor
> Attachments: SOLR-5172.patch
>
>
> In SOLR-4718 we allowed solr.xml to be read from Zookeeper in cloud setups.
> However, this doesn't work with an embedded ZK server because it doesn't
> start until CoreContainer.load() is called, by which time solr.xml has
> already been loaded. We should move the embedded ZK startup/shutdown logic
> out of CoreContainer and into SolrDispatchFilter.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]