Time for action – testing SolrCloud and Zookeeper locally
Every Solr instance now also includes an embedded Zookeeper instance, so we can start our experimentation with that, and then move to a more robust configuration with an external Zookeeper server.
- We can start from the default example in the Solr distribution. We can write the following command:
>> cd ~/SolrStarterBook/solr/example
- Then we can start the first SolrCore instance using the configuration for the
>> java -DzkRun -DnumShards=2 -Dbootstrap_confdir=../../solr-app/chp07/arts/conf/ -jar start.jar
- We can then start two more instances, with a slightly different choice of parameters:
>> java -Djetty.port=7777 -DzkHost=localhost:9983 -jar start.jar >> java -Djetty.port=8888 ...