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? Are you saying _solr_'s data dir was a child of ZooKeeper? That's highly unusual. And you also said that the ZK node was inadvertently removed. If your dataDir is located under your ZK nodes, that would explain losing the Solr replica data. I _strongly_ recommend you separate where Solr stores its indexes from ZooKeeper's data. I'd also be curious about how big your ZK snapshots are, it's vaguely possible that the ZK snapshots are including your indexes, which would be extremely wasteful. Best, Erick On Thu, Jan 10, 2019 at 12:00 AM Yogendra Kumar Soni <yogendra.ku...@dolcera.com> wrote: > > 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 piece. > Does solr stores shard and hash ranges somewhere similar to core.properties? > Is there any other method to recreate collection using existing core data > and configset files (schema.xml, solrconfig.xml)? > > > On Wed, Jan 9, 2019 at 9:00 PM Gus Heck <gus.h...@gmail.com> wrote: > > > 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 > > > > > -- > *Thanks and Regards,* > *Yogendra Kumar Soni*