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
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
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?
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
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
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".
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.
--