Thanks Eric, I understand your explanation. Quick question, Are configurations sits under /configs/defaults because -configname specified as default when I execute the following command? Can I specify -configname as /c-ins/
zkcli.sh -zkhost zoo1.internal:2183,zoo2.internal:2183,zoo3.internal:2183 -cmd upconfig -confdir <solr-home>/collection1/conf -confname default Also I noticed that available options for -configname is default or schemaless, that is why I specified as default. Thanks, Elike On 12 December 2014 at 14:23, Erick Erickson <erickerick...@gmail.com> wrote: > > bq: 1. Like to know what I have done is correct ? > Looks fine to me. > > bq: 2. Where to place the schema.xml's and other configurations. Because > for > the moment it's are under collection1/conf folder and collection1 is not an > active collection for me. ( i'm using only c-ins core) > > I think you're a bit confused here. The configuration stuff is NOT > "under collection1/conf" as far as SolrCloud is concerned, it's in > Zookeeper in /configs/default, take a look at the admin>>cloud page, > click the /configs entry and I think you'll see a "defaults" node. > > As far as SolrCloud is concerned, that's where your configs live. The > fact that they exist in <solr-home>/collection1/conf on your local > machine is totally irrelevant. Tomorrow, you could issue an upconfig > and use something like ".....-confdir mytotallynewdirectory/conf > -confname default" and SolrCloud would happily overwrite your configs > in the Zookeeper "default" node with the new ones, _and_ distribute > them to all the Solr nodes when they were restarted. > > So where your configs "should" live is in some kind of version > control...... > > HTH, > Erick > > On Thu, Dec 11, 2014 at 6:19 PM, E S J <esj.f...@gmail.com> wrote: > > Hello Team, > > > > I would like to get clarified where to place schema.xml on SolrCloud > set-up. > > > > My Solr cloud set-up , 3 nodes, 3 shards and 3 replications, 3 ZooKeeper > > > > What I have done is, > > 1. Taken a solr.war from solr default download ( > > solr-4.10.2/example/webapps/solr.war - 4.10.2) and placed > > <tomcat-home>/webapps/ folder. > > > > 2. Taken Solr home from solr default download ( > solr-4.10.2/example/solr/) > > and placed on solr.home > > (Copied Collection folder as well along with solr.xml) > > > > 3. Started 3 solr nodes and zookeepr instances ( after correct > > configuration) > > > > 4. Register solr configurations of ZooKeeper using, > > zkcli.sh -zkhost zoo1.internal:2183,zoo2.internal:2183,zoo3.internal:2183 > > -cmd upconfig -confdir <solr-home>/collection1/conf -confname default > > > > 5. Create 3 Shard's and 3 Replicas : > > > http://solr1.internal:7003/solr/admin/collections?action=CREATE&name=c-ins&replicationFactor=3&numShards=3&collection.configName=default&maxShardsPerNode=3&wt=json&indent=2 > > > > > > After that I can see following folder structure in Solr node1's > > <solr-home> directory ( Can see similar structure on my other 2 solr > nodes) > > -rw-r--r-- solr.xml drwxrwxr-x c-ins_shard1_replica1 drwxrwxr-x > > c-ins_shard2_replica1 drwxrwxr-x c-ins_shard3_replica1 drwxr-xr-x > > collection1 > > > > > > I've done some xml docuemnt indexing and it's working fine, Zoo-keepers > are > > also working fine, My Questions are, > > > > 1. Like to know what I have done is correct ? > > 2. Where to place the schema.xml's and other configurations. Because for > > the moment it's are under collection1/conf folder and collection1 is not > an > > active collection for me. ( i'm using only c-ins core) > > > > > > Appreciate your time on this. > > > > Thanks - Elike >