Re: how to recover state.json files

2019-01-10 Thread Yogendra Kumar Soni
Thanks Shawn and ErickI got the points * Solr does not stored every single piece of information of state.json but can be recreated. I think there is something not adding up << On 1/9/2019 4:25 AM, Yogendra Kumar Soni wrote: > > How to know attributes like shard name and hash ranges with

Re: how to recover state.json files

2019-01-10 Thread Shawn Heisey
On 1/9/2019 4:25 AM, Yogendra Kumar Soni wrote: How to know attributes like shard name and hash ranges with associated core names if we lost state.json file from zookeeper. core.properties only contains core level information but hash ranges are not stored there. Does solr stores collection

Re: how to recover state.json files

2019-01-10 Thread Erick Erickson
bq. Does solr stores shard and hash ranges somewhere similar to core.properties? no. But it's easy enough to get them, just create another dummy collection with the same number of shards and copy the hash ranges from the dummy collection to ZK. bq. also dataDir was inside zookeeper dir. What?

Re: how to recover state.json files

2019-01-10 Thread Yogendra Kumar Soni
It was a mistake that got zookeeper dir deleted also dataDir was inside zookeeper dir. We manually created zookeeper files taking reference from another solr instance, core.properties etc. SolrCloud is up and running and we are able to search.correct hash ranges for each shard is only missing

Re: how to recover state.json files

2019-01-09 Thread Gus Heck
Not a direct solution, but manipulating data in Zookeeper can be made easier with https://github.com/rgs1/zk_shell On Wed, Jan 9, 2019 at 10:26 AM Erick Erickson wrote: > How did you "lose" the data? Exactly what happened? > > Where does the dataDir variable point in your > zoo.cfg file? By

Re: how to recover state.json files

2019-01-09 Thread Erick Erickson
How did you "lose" the data? Exactly what happened? Where does the dataDir variable point in your zoo.cfg file? By default it points to /tmp/zookeeper, which can be deleted by the op system when the machine is restarted. Otherwise you can get/put arbitrary znodes by using "bin/solr zk cp".

Re: how to recover state.json files

2019-01-09 Thread Bernd Fehling
Have you lost dataDir from all zookeepers? If not, first take a backup of remaining dataDir and then start that zookeeper. Take ZooInspector to connect to dataDir at localhost and get your state.json including all other configs and setting. Am 09.01.19 um 12:25 schrieb Yogendra Kumar Soni:

how to recover state.json files

2019-01-09 Thread Yogendra Kumar Soni
How to know attributes like shard name and hash ranges with associated core names if we lost state.json file from zookeeper. core.properties only contains core level information but hash ranges are not stored there. Does solr stores collection information, shards information anywhere. --