Thanks to Binoy and Erick. I'll go use external zk tomorrow and do what you suggest.
Scott Chu,scott....@udngroup.com 2016/5/16 (週一) ----- Original Message ----- From: Erick Erickson To: solr-user ; scott.chu CC: Date: 2016/5/16 (週一) 23:41 Subject: Re: [scottchu] Cab I migrate solrcloud by just copying whole package folder? bq: How can I run that embedded zk node independently? You don't. You run ZK independently. It _seems_ like you should be able to copy the zk_data directory over "to the right place" and have it found, I suspect somehow you're not. Take a look at where it is on your source machine and see that it's there on the destination machine.... Embedded ZK was never intended as anything other than a way to get started, pretty soon you'll need to get familiar with running ZK externally anyway so... Download Zookeeper. I'm on a Mac so the commands are slightly different, but it's just going to the Zk install directory and './zkServer.sh start'..... Best, Erick On Mon, May 16, 2016 at 8:32 AM, 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 ----- 未在此訊息中找到病毒。 已透過 AVG 檢查 - www.avg.com 版本: 2015.0.6201 / 病毒庫: 4568/12243 - 發佈日期: 05/16/16