Hi Folks,

Can one one you share the shell script or any script in other language to
spin up a new solr node deployed in tomcat
with most of the configs from zookeepers and some from svn, with some
defaults values.

#some default directory
${solrDataDir} =/opt
#some host name
${masterHost}=dev.solr.node1
solr.home= ${solrDataDir}/solr/
#default log directory
solr.log=${solrDataDir}/solr/logs/
solr.master.url=http://${masterHost}/solr
tomcat.home=${solrDataDir}/tomcat7/

Get the list of all collections from http://
{host}/solr/admin/collections?action=CLUSTERSTATUS&wt=xml
and the for each collection
create its corresponding core directories and auto create core.properties
for ex: for collection1 and collection2 from above admin response
sudo mkdir solr.home/collection1
sudo touch solr.home/collection1/core/properties and populate with required
properties

sudo mkdir solr.home/collection2
sudo touch solr.home/collection2/core/properties and populate with required
properties

Create a solr.xml file with
zkhost, port, context and other required properties.
sudo touch solr.home/solr.xml and populate with required properties

Deploy the solr.war from local svn/any repository to ${tomcat.home}/webapps
dir and start, solr instance started will join the solr cloud farm and the
index will be replicated.

As of now i have two link that i am reading, these scripts are from
lucidworks i am not sure if we can use them
and more over these usese phyton and fabric which are very new to me as we
do not have any experienced developer with these skills

https://github.com/LucidWorks/solr-scale-tk
  and
http://lucidworks.com/blog/introducing-the-solr-scale-toolkit/


*Thanks,*
*Rajesh.*

Reply via email to