Originally i was running a single solr 4.3 instance with 4 cores ... and now starting to learn about solrCloud and thought I could setup number of shards=1 (since its a single instance) and same 4 cores can be converted to 4 collections on the same single shard same single instance.
How do I define each -Dcollection.configName as a part of setenv.sh? should I point my -Dbootstrap_confdir to parent directory instead? -Manasi Daniel Collins wrote > You've specified bootstrap_confdir and the same collection.configName on > all your cores, so as each of them start, each will be uploading its own > configuration to the collection1_conf area of ZK, so they will all be > overwriting each other. > > Are your 4 cores replicas of the same collection or are they distinct > collections? If the latter, then why put them all in SolrCloud (there > really isn't any benefit?) but assuming you wanted to do it for expansion > reasons (to add replicas later on), then each one will need to have a > distinct collection.configName parameter, so that ZK knows to keep the > configs separate. > > > > On 17 July 2013 07:44, smanad < > smanad@ > > wrote: > >> I am running solr 4.3 with tomcat 7 (with non SolrCloud) and have 4 solr >> cores running. >> >> Switching to start using SolrCloud with tomcat7 and embedded zookeeper I >> updated JAVA_OPTS in this file tomcat7/bin/setenv.sh to following, >> >> JAVA_OPTS="-Djava.awt.headless=true -Xms2048m -Xmx4096m >> -XX:+UseConcMarkSweepGC -Dbootstrap_confdir=/ > <path> > /solr/collection1/conf/ >> -Dcollection.configName=collection1_conf -DnumShards=1 -DzkRun" >> >> Now, all my cores (collections) are set to the default collection1 >> schema. >> Not sure why? >> >> solr.xml is set to correct instanceDir settings. >> >> Any pointers? >> Thanks, >> -Manasi >> >> >> >> >> -- >> View this message in context: >> http://lucene.472066.n3.nabble.com/Switching-to-using-SolrCloud-with-tomcat7-and-embedded-zookeeper-tp4078524.html >> Sent from the Solr - User mailing list archive at Nabble.com. >> -- View this message in context: http://lucene.472066.n3.nabble.com/Switching-to-using-SolrCloud-with-tomcat7-and-embedded-zookeeper-tp4078524p4078538.html Sent from the Solr - User mailing list archive at Nabble.com.