Re: Lose Solr config on zookeeper when it is restarted
Are all instances of Solr the same version? Mixing versions could cause what Erick describes. On Thu, Oct 8, 2015, at 03:19 AM, Erick Erickson wrote: > Sounds like you're somehow mixing old and new versions of the ZK state > when you restart. I have no idea how that would be happening, but... > > It's consistent. If you're somehow creating collections with the new > format where state.json is kept per collection, but when you restart > you're somehow defaulting to the old format where there was one > gigantic clusterstate.json. > > One deceptive thing is that with the new format, the clusterstate.json > node will exist but be empty, and underneath the collections node > there'll be a state.json for that collection. > > Best, > Erick > > On Wed, Oct 7, 2015 at 6:31 PM, CrazyDiamond <crazy_diam...@mail.ru> > wrote: > > zk is stand-alone. But i think solr node is ephimeral. > > > > > > > > -- > > View this message in context: > > http://lucene.472066.n3.nabble.com/Lose-Solr-config-on-zookeeper-when-it-is-restarted-tp421p4233376.html > > Sent from the Solr - User mailing list archive at Nabble.com.
Re: Lose Solr config on zookeeper when it is restarted
i have one instance of solr. the thing is when i create collection the running solr is used but when i upload config i use zkcli -- View this message in context: http://lucene.472066.n3.nabble.com/Lose-Solr-config-on-zookeeper-when-it-is-restarted-tp421p4233626.html Sent from the Solr - User mailing list archive at Nabble.com.
Lose Solr config on zookeeper when it is restarted
sometimes when Zookeeper( single mode) is restarted it lose solr collections. Furthermore when i manually upload it again then no state.json is created in collection but clusterstate.json is created instead. i use solr 5.1.0 -- View this message in context: http://lucene.472066.n3.nabble.com/Lose-Solr-config-on-zookeeper-when-it-is-restarted-tp421.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Lose Solr config on zookeeper when it is restarted
On Wed, Oct 7, 2015, at 09:42 PM, CrazyDiamond wrote: > sometimes when Zookeeper( single mode) is restarted it lose solr > collections. Furthermore when i manually upload it again then no > state.json > is created in collection but clusterstate.json is created instead. > i use solr 5.1.0 How are you starting zookeeper? Embedded within Solr? Stand-alone? If you are starting it embedded, check the solr/zoo_data directory - that's where Zookeeper is writing its info. If that is getting lost somehow, you could loose your collections/etc. Upayavira
Re: Lose Solr config on zookeeper when it is restarted
Sounds like you're somehow mixing old and new versions of the ZK state when you restart. I have no idea how that would be happening, but... It's consistent. If you're somehow creating collections with the new format where state.json is kept per collection, but when you restart you're somehow defaulting to the old format where there was one gigantic clusterstate.json. One deceptive thing is that with the new format, the clusterstate.json node will exist but be empty, and underneath the collections node there'll be a state.json for that collection. Best, Erick On Wed, Oct 7, 2015 at 6:31 PM, CrazyDiamond <crazy_diam...@mail.ru> wrote: > zk is stand-alone. But i think solr node is ephimeral. > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Lose-Solr-config-on-zookeeper-when-it-is-restarted-tp421p4233376.html > Sent from the Solr - User mailing list archive at Nabble.com.
Re: Lose Solr config on zookeeper when it is restarted
zk is stand-alone. But i think solr node is ephimeral. -- View this message in context: http://lucene.472066.n3.nabble.com/Lose-Solr-config-on-zookeeper-when-it-is-restarted-tp421p4233376.html Sent from the Solr - User mailing list archive at Nabble.com.