[
https://issues.apache.org/jira/browse/SOLR-7074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14641814#comment-14641814
]
Jan Høydahl commented on SOLR-7074:
-----------------------------------
I like this idea. ZK is not officially supported in production for Windows, so
we'll likely not get much traction within the ZK project to fix the Win start
script. And perhaps Solr's usage of ZK is so basic that using the embedded ZK
is more than good enough, with decent defaults.
How about simplifying the configuration of a ZK ensemble as well? To start node
1 in an ensemble, issue {{bin/zk start -id 1}}, which would automatically
configure ZK with a {{myid}} file and decent {{zoo.cfg}} defaults, taking
server host/port from ZK_HOST in {{solr.in.sh}}, or from a {{-z}} param.
> Simple script to start external Zookeeper
> -----------------------------------------
>
> Key: SOLR-7074
> URL: https://issues.apache.org/jira/browse/SOLR-7074
> Project: Solr
> Issue Type: Improvement
> Components: SolrCloud
> Reporter: Upayavira
>
> When starting Zookeeper for SolrCloud, we have two choices, bin/solr -c
> (without -z) and run Zookeeper embedded. Whilst this works, it is suggestive
> of bad practice, something you will have to unlearn later.
> The second option is to download Zookeeper, and install it manually. This
> isn't hugely hard, but it is quite manual. However, try it on Windows, and
> you'll find the Windows start script for Zookeeper is extremely thin (no
> start/stop options, etc).
> Solr contains everything needed to start Zookeeper. Why not have a bin/zk
> script that can start it for us. Thus, first time user instructions for
> ZolrCloud could be:
> bin/zk start
> bin/zk uploadconf examples/techproducts/conf
> bin/solr start -c -Z
> -Z here hypothetically says "look in the standard place, localhost:2181, for
> Zookeeper".
> or even:
> bin/zk start -config=examples/techproducts/conf
> bin/ssolr start -Z
> This should support both Windows and Unix.
> bin/zk would support all the functionality of the current zkCli scripts as
> well as being able to start/stop zookeeper.
> This would make initial experience of using Solr a lot simpler, in my view,
> which would be a good thing.
> Not only that, deploying Zookeeper in production, for Solr, need only be push
> a Solr app dir to the server, then run bin/zk start, reducing the complexity
> of installation.
> Thoughts? If this seems like a good idea, and don't share valid objections,
> I'm prepared to make it happen.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]