Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-7074

Simple script to start external Zookeeper

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Workaround
    • None
    • None
    • SolrCloud
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              upayavira Upayavira
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: