Is it needed to create collection again in Solr 8.0.0 if its already created in Solr 6.1.0 ?
When i upgraded Solr 6.1.0 from 5.2.0, i just copied collection and changed the solrconfig.xml as per solr 6.1.0. upconfig using below command zkcli.bat -cmd bootstrap -solrhome F:\SolrCloud-6.1.0\solr-6.1.0-shard-1\server\solr -z 192.168.100.222:3181,192.168.100.222:3182,192.168.100.222:3183 After the solr start, automatic up the collection without changed core.property and made configset. Is any major changes after the Solr 6.1.0 ?? Get Outlook for Android<https://aka.ms/ghei36> ________________________________ From: Erick Erickson <erickerick...@gmail.com> Sent: Wednesday, March 27, 2019 9:15:50 PM To: vishal patel Subject: Re: SolrCore Initialization Failures in Solr 8.0.0 There is no need whatsoever to make a folder structure. Solr will create the proper local file system _for_ you when you create a collection when using SolrCloud. Please just don’t do this. The config files will live on ZooKeeper, not locally. "bin/solr zk upconfig..” will move the files from anywhere in your system to ZooKeeper. They will NOT be present locally to each replica. You’re making things far too complicated and probably shooting yourself in the foot. Try the simple way: 1> start Solr after a fresh install 2> use the bin/solr zk upconfg command to put any custom configset up on ZooKeeper 3> use the admin UI to create your collection Best, Erick > On Mar 27, 2019, at 5:40 AM, vishal patel <vishalpatel200...@outlook.com> > wrote: > > solr 6.1.0 folder structure > > F:\SolrCloud-6.1.0\solr-6.1.0-shard-1\server\solr\ > > --- product > > --- conf > > --- schema.xml > > --- solrconfig.xml > > --- core.properties > > --- solr.xml > > --- zoo.cfg > > Note : core.properties below data > > name=product > > shard=shard1 > > collection=product > > > upconfig command : > > zkcli.bat -cmd bootstrap -solrhome > F:\SolrCloud-6.1.0\solr-6.1.0-shard-1\server\solr -z > 192.168.100.222:3181,192.168.100.222:3182,192.168.100.222:3183 > > Solr start command : > > solr start -p 7992 > > ***************************** > > Now I am upgrading solr 8.0.0 and make a folder structure like > > F:\SolrCloud-8-0-0\solr-8.0.0-shard-1\server\solr > > --- product > > --- data > > --- core.properties > > --- configsets > > --- product > > --- conf > > --- schema.xml > > --- solrconfig.xml > > --- solr.xml > > --- zoo.cfg > > Note : core.properties below data > collection.configName=product > name=product > shard=shard1 > collection=product > coreNodeName=core_node2 > > upconfig command : > > zkcli.bat -zkhost > 192.168.100.222:3181,192.168.100.222:3182,192.168.100.222:3183 -cmd upconfig > -confdir > F:/SolrCloud-8-0-0/solr-8.0.0-shard-1/server/solr/configsets/product/conf > -confname product > > Solr start command : > > solr start -p 7992 > > > Its working if i make a folder structure like this. > > > Why should not configure with same folder structure when upgrade the solr > 8.0.0? is it necessary to make a configsets?we did successfully up without > making a configsets in solr 6.1.0. > From: Erick Erickson <erickerick...@gmail.com> > Sent: Tuesday, March 26, 2019 8:16 PM > To: solr-user@lucene.apache.org > Subject: Re: SolrCore Initialization Failures in Solr 8.0.0 > > How did you create your “product” collection? It looks like you have the > config resident on your local disk and _not_ on ZooKeeper. > > Your configset has to be in ZooKeeper when you create your collection of > course. Do not try to individually edit the core.properties files, that’ll be > very difficult to do correctly. > > And you’ll have to completely re-index anyway since Lucene 8.x will not open > an index created with 6.x, so why not just start completely anew? > > Best, > Erick > > > On Mar 26, 2019, at 6:49 AM, vishal patel <vishalpatel200...@outlook.com> > > wrote: > > > > > > My previous solr version was 6.1.0 and zoo keeper version was 3.4.6. Now I > > am upgrading solr version 8.0.0 and zoo keeper 3.4.13. > > In solr 6.1.0 my collection(product) folder server\solr\product > > conf > > schema.xml > > solrconfig.xml > > core.properties > > > > In core.properties :: > > name=product > > shard=shard1 > > collection=product > > > > In solr 8.0.0, I changed only solrconfig.xml and all other things keep same. > > I created 3 zoo keeper and one shard. First I start all 3 zoo keeper and > > then start the solr, below ERROR come > > > > > > 2019-03-26 13:06:49.367 ERROR > > (coreLoadExecutor-13-thread-1-processing-n:192.168.100.145:7991_solr) > > [c:product s:shard1 x:product] o.a.s.c.ZkController > > org.apache.solr.common.SolrException: Could not find collection : product > > at > > org.apache.solr.common.cloud.ClusterState.getCollection(ClusterState.java:118) > > ~[solr-solrj-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979 - > > jimczi - 2019-03-08 12:06:10] > > at > > org.apache.solr.core.CoreContainer.repairCoreProperty(CoreContainer.java:1854) > > ~[solr-core-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979 - > > jimczi - 2019-03-08 12:06:06] > > at > > org.apache.solr.cloud.ZkController.checkStateInZk(ZkController.java:1790) > > ~[solr-core-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979 - > > jimczi - 2019-03-08 12:06:06] > > at org.apache.solr.cloud.ZkController.preRegister(ZkController.java:1729) > > [solr-core-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979 - > > jimczi - 2019-03-08 12:06:06] > > at > > org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1182) > > [solr-core-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979 - > > jimczi - 2019-03-08 12:06:06] > > at > > org.apache.solr.core.CoreContainer.lambda$load$13(CoreContainer.java:695) > > [solr-core-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979 - > > jimczi - 2019-03-08 12:06:06] > > at org.apache.solr.core.CoreContainer$$Lambda$259/523051393.call(Unknown > > Source) [solr-core-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979 > > - jimczi - 2019-03-08 12:06:06] > > at > > com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:197) > > [metrics-core-3.2.6.jar:3.2.6] > > at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_45] > > at > > org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:209) > > [solr-solrj-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979 - > > jimczi - 2019-03-08 12:06:10] > > at > > org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor$$Lambda$45/898628429.run(Unknown > > Source) [solr-solrj-8.0.0.jar:8.0.0 > > 2ae4746365c1ee72a0047ced7610b2096e438979 - jimczi - 2019-03-08 12:06:10] > > at > > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > > [?:1.8.0_45] > > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > > [?:1.8.0_45] > > at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45] > > 2019-03-26 13:06:49.382 ERROR > > (coreContainerWorkExecutor-2-thread-1-processing-n:192.168.100.145:7991_solr) > > [ ] o.a.s.c.CoreContainer Error waiting for SolrCore to be loaded on > > startup > > org.apache.solr.common.SolrException: Unable to create core [product] > > at > > org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1210) > > ~[solr-core-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979 - > > jimczi - 2019-03-08 12:06:06] > > at > > org.apache.solr.core.CoreContainer.lambda$load$13(CoreContainer.java:695) > > ~[solr-core-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979 - > > jimczi - 2019-03-08 12:06:06] > > at org.apache.solr.core.CoreContainer$$Lambda$259/523051393.call(Unknown > > Source) ~[?:?] > > at > > com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:197) > > ~[metrics-core-3.2.6.jar:3.2.6] > > at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_45] > > at > > org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:209) > > [solr-solrj-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979 - > > jimczi - 2019-03-08 12:06:10] > > at > > org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor$$Lambda$45/898628429.run(Unknown > > Source) [solr-solrj-8.0.0.jar:8.0.0 > > 2ae4746365c1ee72a0047ced7610b2096e438979 - jimczi - 2019-03-08 12:06:10] > > at > > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > > [?:1.8.0_45] > > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > > [?:1.8.0_45] > > at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45] > > Caused by: org.apache.solr.common.SolrException: > > at org.apache.solr.cloud.ZkController.preRegister(ZkController.java:1760) > > ~[solr-core-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979 - > > jimczi - 2019-03-08 12:06:06] > > at > > org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1182) > > ~[solr-core-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979 - > > jimczi - 2019-03-08 12:06:06] > > ... 9 more > > Caused by: org.apache.solr.common.SolrException: Could not find collection > > : product > > at > > org.apache.solr.common.cloud.ClusterState.getCollection(ClusterState.java:118) > > ~[solr-solrj-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979 - > > jimczi - 2019-03-08 12:06:10] > > at > > org.apache.solr.core.CoreContainer.repairCoreProperty(CoreContainer.java:1854) > > ~[solr-core-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979 - > > jimczi - 2019-03-08 12:06:06] > > at > > org.apache.solr.cloud.ZkController.checkStateInZk(ZkController.java:1790) > > ~[solr-core-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979 - > > jimczi - 2019-03-08 12:06:06] > > at org.apache.solr.cloud.ZkController.preRegister(ZkController.java:1729) > > ~[solr-core-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979 - > > jimczi - 2019-03-08 12:06:06] > > at > > org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1182) > > ~[solr-core-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979 - > > jimczi - 2019-03-08 12:06:06] > > ... 9 more > > > > > > > > Is it needed to change core property or any changes for up the product > > collection successfully? > > > > > > Regards, > > Vishal