This depends on where zookeeper is storing the data. I'm not sure exactly
how the embedded zookeeper stores data locally, but given your situation we
can be sure that it's not stored in the solr folder.
Try to find out where the embedded zookeeper stores it's data and then copy
over that directory.
That should work.

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

>
> But I'm using embeded zk nodes provided by solr start command. I thought
> they are all under d:\solr5. How can I run that embedded zk node
> independently?
>
> Scott Chu,scott....@udngroup.com
> 2016/5/16 (週一)
> ----- Original Message -----
> From: Binoy Dalal
> To: scott.chu ; solr-user
> CC:
> Date: 2016/5/16 (週一) 23:29
> Subject: Re: [scottchu] Cab I migrate solrcloud by just copying whole
> package folder?
>
>
> 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
>
>
>
> -----
> 未在此訊息中找到病毒。
> 已透過 AVG 檢查 - www.avg.com
> 版本: 2015.0.6201 / 病毒庫: 4568/12243 - 發佈日期: 05/16/16
>
-- 
Regards,
Binoy Dalal

Reply via email to