lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <apa...@elyograg.org>
Subject Re: changing state.json using ZKCLI
Date Wed, 11 Jan 2017 04:12:02 GMT
On 1/10/2017 5:28 PM, Chetas Joshi wrote:
> I have got 2 shards having hash range set to null due to some index
> corruption.
>
> I am trying to manually get, edit and put the file.
<snip>
> ./zkcli.sh -zkhost ${zkhost} -cmd putfile ~/colName_state.json
> /collections/colName/state.json
>
> I am getting FileNotFound exception with the putfile command

You've got the parameters backwards.  The zookeeper location comes first.

Run the zkcli script with no parameters to see the examples of the
various commands available, which includes this line:

zkcli.sh -zkhost localhost:9983 -cmd putfile /solr.xml
/User/myuser/solr/solr.xml

Thanks,
Shawn


Mime
View raw message