Let Solr do it for you. In this case use the collections API
ADDREPLICA command. You tell it what collection and
shard you want replicated, it'll create the right structure in the
right place and synch the index.

See: 
https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-api_addreplica

If you require exact placement of the replica, specify the "node"
parameter.

Best,
Erick

On Fri, Aug 19, 2016 at 2:19 AM, Jason <hialo...@gmail.com> wrote:
> I'm new to solrcloud (ver.6.1). So, I'm in tutorial.
> I tried to force removing specific node because I was wondering how to
> recover a node.
> But I can't solve the problem.
>
> Below is my scenario.
>
>> bin/solr -e cloud
> # make 2 nodes with 8983, 8984 port
> # collection structure is below
> # example/cloud/node1 (with 8983)
> #                             /cloudexample_shard1_replica2
> #                             /cloudexample_shard2_replica2
> # example/cloud/node2 (with 8984)
> #                             /cloudexample_shard1_replica1
> #                             /cloudexample_shard2_replica1
>
>> java -Dc=gettingstarted -jar post.jar *.xml
> # indexing and searching is ok.
>
>> bin/solr stop -p 8984
> # force to shutdown node2 and remove example/cloud/node2
>
>> mkdir -p example/cloud/new_node2/solr
>> cp example/cloud/node1/solr/solr.xml example/cloud/new_node2/solr
>> bin/solr start -c -p 8984 -z localhost:9983 -x
>> example/cloud/new_node2/solr
>
> everything is good so far, but after this how should I recover node2 same as
> before remove?
>
>
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/How-to-recovery-node-tp4292354.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to