O'Reilly logo

Apache Solr Search Patterns by Jayant Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding more nodes to the SolrCloud

Let us see how we can add more nodes to SolrCloud. Create one more machine solr5. Copy the Tomcat folder to this machine and create the folder solr-cores in the /home/ubuntu folder. Alter the tomcat/bin/setenv.sh file and change the -Dhost parameter to match the machine's host. For solr5, it will be:

SOLR_OPTS="-Dsolr.solr.home=/home/ubuntu/solr-cores -Dhost=solr5 -Dport=8080 -DhostContext=solr -DzkClientTimeout=20000 -DzkHost=zoo1:2181,zoo2:2181,zoo3:2181"

Also copy the solr.xml file from any Solr machine to these machines inside the solr-cores folder. Now start Tomcat and check whether it is running by opening the following URL: http://solr5:8080/solr.

There are two ways to identify whether this node has been ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required