Thanks Lot and It's clear to me Eric.
On 19 December 2014 at 11:08, Erick Erickson <erickerick...@gmail.com> wrote: > > Zookeeper knows nothing at all about Solr, it's fully generic. The code > for SolrCloud on each of the Solr instances _does_ know about Zookeeper, > and where to expect certain information, specifically where the > configurations > are stored on Zookeeper. So on startup, the Solr instance queries > Zookeeper for, in this case, the config set which is just a path on > Zookeeper. For each collection on the Solr node it pulls the appropriate > configs down, loads and goes. So the path is something like > /configs/whatevertheconfignameis..... > > HTH, > Erick > > On Thu, Dec 18, 2014 at 3:53 PM, E S J <esj.f...@gmail.com> wrote: > > Hi Erick, > > > > This question came to my mind after sometime seen your reply, Why Solr > > configurations are kept on ZooKeeper ? > > As far as I know, ZooKeeper is generic system can be used for any cross > > node configurations, not only with Solr, Solr configurations are Solr > > Specific, How ZooKeeper know/read Solr specific configurations. Does ZK > > has auto detect ZooKeeper plugins ? > > > > Can you help me to understand this ? > > > > thanks, > > Shanaka > > > > 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 > >> >