What you copied is just the index.
Your configurations are stored on zookeeper.
You need to upload these to your zookeeper on your other machine and link
it to your collection.
Then it'll work.

On Mon, 16 May 2016, 20:55 Scott Chu, <scott....@udngroup.com> wrote:

> On my office pc, I install Solr 5 on d:\solr5 and create myconfigsets and
> mynodes under it. Then run a solrcloud with 2 nodes and embedded zk nodes
> by executing these commands:
>
>     cd /d d:\solr5
>     bin\solr start -c -s mynode\node1
>     bin\solr start -c -s mynode\node2 -p 7973 -z localhost:9983
>     bin\solr create_collection -c cugna -d myconfigsets\cugna -shards 1
> -replicationFactor 2
>
> They run well and then I insert 50k no. of docs to cugna. They are all
> under d:\solr5 folder where I unzip solr 5 package.
>
> ~~~
> Later I copy d:\solr5 to usb and bring it home. I copy it to d:\solr5 at
> home pc(i.e. with same path). When I try to start nodes, the server log
> shows:
>
>     2016-05-16 14:57:18.830 ERROR (qtp5592464-15) [   ]
> o.a.s.s.HttpSolrCall null:org.apache.solr.common.SolrException: Error
> loading config name for collection cugna
>         ...
>     2016-05-16 14:57:18.829 INFO  (qtp5592464-15) [   ]
> o.a.s.s.HttpSolrCall [admin] webapp=null path=/admin/collections
> params={action=CLUSTERSTATUS&wt=json} status=500 QTime=9
>     2016-05-16 14:57:18.830 ERROR (qtp5592464-15) [   ]
> o.a.s.s.HttpSolrCall null:org.apache.solr.common.SolrException: Error
> loading config name for collection cugna
>         ...
>     Caused by: org.apache.zookeeper.KeeperException$NoNodeException:
> KeeperErrorCode = NoNode for /collections/cugna
>
> Does this mean Solrcloud can not migrate by copying whole Solr package?
> How can I do it?
>
> Note: I want to do this because if I add all docs in lab and later when go
> live, I wish just copy whole folder to production environment without
> adding all docs again?
>
-- 
Regards,
Binoy Dalal

Reply via email to