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 <erickerick...@gmail.com> wrote: > 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....". Try "bin/solr zk -help" to > see the options. What I'd do to start is create > a new collection and use the state.json > as a template. > > Assuming, of course, that Bernd's suggestion > is impossible. > > Best, > Erick > > On Wed, Jan 9, 2019 at 5:20 AM Bernd Fehling > <bernd.fehl...@uni-bielefeld.de> wrote: > > > > 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 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. > > > > > > > > > > -- http://www.the111shift.com