agree with darren here... setting up solr cloud is way too complicated .. moreover if you are using tomcat. Do we have any ticket to simplify the solr cloud installation ? I would love to include my suggestions in it.
Thanks Varun On Mon, Feb 25, 2013 at 7:24 PM, darren <dar...@ontrenet.com> wrote: > Ok. But its way too complicated than it should be. It should work smarter. > > > Sent from my Verizon Wireless 4G LTE Smartphone > > -------- Original message -------- > From: Anirudha Jadhav <aniru...@nyu.edu> > Date: > To: solr-user@lucene.apache.org > Subject: Re: zk Config URL? > > Solr cloud reads solr cfg files from zookeeper. > > You need to push the cfg to zookeeper & link collection to cfg. > This is exactly what mark suggested earlier in the thread. This is also > explained in solr cloud wiki. > > On Monday, February 25, 2013, Darren Govoni wrote: > > > Hi Mark, > > > > I download latest zk, and run it. > > > > In my glassfish server, I set these system wide properties: > > > > numShards = 1 > > zkHost = 10.x.x.x:2181 > > jetty.port = 8080 (port of my domain) > > bootstrap_config = true > > > > I copy all the solr 4.1 dist/*.jar into my glassfish domain lib/ext > > directory. Then I deploy solr 4.1 war. > > It throws this exception always. > > > > [#|2013-02-25T13:31:32.304+**0000|INFO|glassfish3.1.2|** > > javax.enterprise.system.**container.web.com.sun.** > > enterprise.web|_ThreadID=10;_**ThreadName=Thread-2;|WEB0171: Created > > virtual server [__asadmin]|#] > > > > [#|2013-02-25T13:31:32.768+**0000|INFO|glassfish3.1.2|** > > javax.enterprise.system.**container.web.com.sun.** > > enterprise.web|_ThreadID=10;_**ThreadName=Thread-2;|WEB0172: Virtual > > server [server] loaded default web module []|#] > > > > [#|2013-02-25T13:31:34.222+**0000|WARNING|glassfish3.1.2|** > > javax.enterprise.system.tools.**deployment.org.glassfish.** > > deployment.common|_ThreadID=**10;_ThreadName=Thread-2;|**DPL8007: > > Unsupported deployment descriptors element schemaLocation value > > http://www.bea.com/ns/**weblogic/90 <http://www.bea.com/ns/weblogic/90> > > http://www.bea.com/ns/**weblogic/90/weblogic-web-app.**xsd|#< > http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd%7C#> > > ] > > > > [#|2013-02-25T13:31:34.223+**0000|SEVERE|glassfish3.1.2|** > > javax.enterprise.system.tools.**deployment.org.glassfish.** > > deployment.common|_ThreadID=**10;_ThreadName=Thread-2;|**DPL8006: get/add > > descriptor failure : filter-dispatched-requests-**enabled TO false|#] > > > > [#|2013-02-25T13:31:34.831+**0000|SEVERE|glassfish3.1.2|** > > javax.enterprise.system.**container.web.com.sun.** > > > enterprise.web|_ThreadID=10;_**ThreadName=Thread-2;|**WebModule[/solr1]PWC1270: > > Exception starting filter SolrRequestFilter > > java.lang.**NoClassDefFoundError: javax/servlet/Filter > > at java.lang.ClassLoader.**defineClass1(Native Method) > > at java.lang.ClassLoader.**defineClassCond(ClassLoader.**java:631) > > at java.lang.ClassLoader.**defineClass(ClassLoader.java:**615) > > at java.security.**SecureClassLoader.defineClass(** > > SecureClassLoader.java:141) > > at java.net.URLClassLoader.**defineClass(URLClassLoader.**java:283) > > at java.net.URLClassLoader.**access$000(URLClassLoader.**java:58) > > at java.net.URLClassLoader$1.run(**URLClassLoader.java:197) > > at java.security.**AccessController.doPrivileged(**Native Method) > > at java.net.URLClassLoader.**findClass(URLClassLoader.java:**190) > > at sun.misc.Launcher$**ExtClassLoader.findClass(**Launcher.java:229) > > at java.lang.ClassLoader.**loadClass(ClassLoader.java:**306) > > at java.lang.ClassLoader.**loadClass(ClassLoader.java:**295) > > at com.sun.enterprise.v3.server.**APIClassLoaderServiceImpl$** > > APIClassLoader.loadClass(**APIClassLoaderServiceImpl.**java:206) > > at java.lang.ClassLoader.**loadClass(ClassLoader.java:**295) > > at java.lang.ClassLoader.**loadClass(ClassLoader.java:**295) > > at java.lang.ClassLoader.**loadClass(ClassLoader.java:**247) > > at org.glassfish.web.loader.**WebappClassLoader.loadClass(** > > WebappClassLoader.java:1456) > > at org.glassfish.web.loader.**WebappClassLoader.loadClass(** > > WebappClassLoader.java:1359) > > at org.apache.catalina.core.**ApplicationFilterConfig.** > > loadFilterClass(**ApplicationFilterConfig.java:**280) > > at org.apache.catalina.core.**ApplicationFilterConfig.**getFilter(** > > ApplicationFilterConfig.java:**250) > > at org.apache.catalina.core.**ApplicationFilterConfig.<init>** > > (ApplicationFilterConfig.java:**120) > > at org.apache.catalina.core.**StandardContext.filterStart(** > > StandardContext.java:4685) > > at org.apache.catalina.core.**StandardContext.start(** > > StandardContext.java:5377) > > at com.sun.enterprise.web.**WebModule.start(WebModule.**java:498) > > at org.apache.catalina.core.**ContainerBase.**addChildInternal(** > > ContainerBase.java:917) > > at org.apache.catalina.core.**ContainerBase.addChild(** > > ContainerBase.java:901) > > at org.apache.catalina.core.**StandardHost.addChild(** > > StandardHost.java:733) > > at com.sun.enterprise.web.**WebContainer.loadWebModule(** > > WebContainer.java:2019) > > at com.sun.enterprise.web.**WebContainer.loadWebModule(** > > WebContainer.java:1669) > > at com.sun.enterprise.web.**WebApplication.start(** > > WebApplication.java:109) > > at > org.glassfish.internal.data.**EngineRef.start(EngineRef.**java:130) > > at org.glassfish.internal.data.**ModuleInfo.start(ModuleInfo.** > > java:269) > > at org.glassfish.internal.data.**ApplicationInfo.start(** > > ApplicationInfo.java:301) > > at com.sun.enterprise.v3.server.**ApplicationLifecycle.deploy(** > > ApplicationLifecycle.java:461) > > at com.sun.enterprise.v3.server.**ApplicationLoaderService.** > > processApplication(**ApplicationLoaderService.java:**375) > > at com.sun.enterprise.v3.server.**ApplicationLoaderService.** > > postConstruct(**ApplicationLoaderService.java:**219) > > at com.sun.hk2.component.**AbstractCreatorImpl.inject(** > > AbstractCreatorImpl.java:131) > > at com.sun.hk2.component.**ConstructorCreator.initialize(** > > ConstructorCreator.java:91) > > at com.sun.hk2.component.**AbstractCreatorImpl.get(** > > AbstractCreatorImpl.java:82) > > at com.sun.hk2.component.**SingletonInhabitant.get(** > > SingletonInhabitant.java:67) > > at com.sun.hk2.component.**EventPublishingInhabitant.get(** > > EventPublishingInhabitant.**java:139) > > at com.sun.hk2.component.**AbstractInhabitantImpl.get(** > > AbstractInhabitantImpl.java:**78) > > at com.sun.enterprise.v3.server.**AppServerStartup.run(** > > AppServerStartup.java:253) > > at com.sun.enterprise.v3.server.**AppServerStartup.doStart(** > > AppServerStartup.java:145) > > at com.sun.enterprise.v3.server.**AppServerStartup.start(** > > AppServerStartup.java:136) > > at com.sun.enterprise.glassfish.**bootstrap.GlassFishImpl.start(** > > GlassFishImpl.java:79) > > at com.sun.enterprise.glassfish.**bootstrap.GlassFishDecorator.** > > start(GlassFishDecorator.java:**63) > > at com.sun.enterprise.glassfish.**bootstrap.osgi.** > > OSGiGlassFishImpl.start(**OSGiGlassFishImpl.java:69) > > at com.sun.enterprise.glassfish.**bootstrap.GlassFishMain$** > > Launcher.launch(GlassFishMain.**java:117) > > at sun.reflect.**NativeMethodAccessorImpl.**invoke0(Native Method) > > at sun.reflect.**NativeMethodAccessorImpl.**invoke(** > > NativeMethodAccessorImpl.java:**39) > > at sun.reflect.**DelegatingMethodAccessorImpl.**invoke(** > > DelegatingMethodAccessorImpl.**java:25) > > at java.lang.reflect.Method.**invoke(Method.java:597) > > at com.sun.enterprise.glassfish.**bootstrap.GlassFishMain.main(** > > GlassFishMain.java:97) > > at com.sun.enterprise.glassfish.**bootstrap.ASMain.main(ASMain.** > > java:55) > > Caused by: java.lang.**ClassNotFoundException: javax.servlet.Filter > > at java.net.URLClassLoader$1.run(**URLClassLoader.java:202) > > at java.security.**AccessController.doPrivileged(**Native Method) > > at java.net.URLClassLoader.**findClass(URLClassLoader.java:**190) > > at sun.misc.Launcher$**ExtClassLoader.findClass(**Launcher.java:229) > > at java.lang.ClassLoader.**loadClass(ClassLoader.java:**306) > > at java.lang.ClassLoader.**loadClass(ClassLoader.java:**247) > > ... 55 more > > > > > > On 02/24/2013 08:32 PM, Mark Miller wrote: > > > >> You either have to specifically upload a config set or use one of the > >> bootstrap sys props. > >> > >> Are you doing either? > >> > >> - Mark > >> > >> On Feb 24, 2013, at 8:15 PM, Darren Govoni <dar...@ontrenet.com> wrote: > >> > >> Thanks Michael. > >>> > >>> I went ahead and just started an external zookeeper, but my solr node > >>> throws exceptions from it. > >>> > >>> Caused by: org.apache.solr.common.cloud.**ZooKeeperException: Could not > >>> find configName for collection collection1 found:null > >>> > >>> ... > >>> > >>> [#|2013-02-24T20:13:58.451-**0500|SEVERE|glassfish3.1.2|** > >>> org.apache.solr.core.**CoreContainer|_ThreadID=28;_** > >>> ThreadName=Thread-2;|null:org.**apache.solr.common.**SolrException: > >>> Unable to create core: collection1 > >>> at org.apache.solr.core.**CoreContainer.recordAndThrow(** > >>> CoreContainer.java:1654) > >>> at org.apache.solr.core.**CoreContainer.create(** > >>> CoreContainer.java:1039) > >>> at org.apache.solr.core.**CoreContainer$3.call(** > >>> CoreContainer.java:629) > >>> at org.apache.solr.core.**CoreContainer$3.call(** > >>> CoreContainer.java:624) > >>> at java.util.concurrent.**FutureTask$Sync.innerRun(** > >>> FutureTask.java:303) > >>> at java.util.concurrent.**FutureTask.run(FutureTask.**java:138) > >>> at java.util.concurrent.**Executors$RunnableAdapter.** > >>> call(Executors.java:441) > >>> at java.util.concurrent.**FutureTask$Sync.innerRun(** > >>> FutureTask.java:303) > >>> at java.util.concurrent.**FutureTask.run(FutureTask.**java:138) > >>> at java.util.concurrent.**ThreadPoolExecutor$Worker.** > >>> runTask(ThreadPoolExecutor.**java:886) > >>> at java.util.concurrent.**ThreadPoolExecutor$Worker.run(** > >>> ThreadPoolExecutor.java:908) > >>> at java.lang.Thread.run(Thread.**java:662) > >>> Caused by: org.apache.solr.common.cloud.**ZooKeeperException: Could not > >>> find configName for collection collection1 found:null > >>> at org.apache.solr.cloud.**ZkController.getConfName(** > >>> ZkController.java:1097) > >>> at org.apache.solr.cloud.**ZkController.**createCollectionZkNode(** > >>> ZkController.java:1016) > >>> at org.apache.solr.core.**CoreContainer.createFromZk(** > >>> CoreContainer.java:937) > >>> at org.apache.solr.core.**CoreContainer.create(** > >>> CoreContainer.java:1031) > >>> ... 10 more > >>> > >>> > >>> On 02/24/2013 07:21 PM, Michael Della Bitta wrote: > >>> > >>>> Hello Darren, > >>>> > >>>> If you go into the admin and click on Cloud, you'll see that > >>>> information represented in a number of ways. Both Dump and Tree > >>>> (especially the clusterstate.json file) have this information > >>>> represented as a document in JSON format. > >>>> > >>>> If you don't see the Cloud navigation on the left side of the admin > >>>> screen, that's a good indication that Solr hasn't connected to > >>>> Zookeeper. > >>>> > >>>> Michael Della Bitta > >>>> > >>>> ------------------------------**------------------ > >>>> Appinions > >>>> 18 East 41st Street, 2nd Floor > >>>> New York, NY 10017-6271 > >>>> > >>>> www.appinions.com > >>>> > >>>> Where Influence Isn’t a Game > >>>> > >>>> > >>>> On Sun, Feb 24, 2013 at 6:34 PM, Darren Govoni <dar...@ontrenet.com> > >>>> wrote: > >>>> > >>>>> Hi, > >>>>> I'm trying the latest solrcloud 4.1. Is there a button(or url) I > >>>>> can't > >>>>> find that shows me the zookeeper config XML, > >>>>> so I can check what other nodes are connected? Can't seem to find it. > >>>>> > >>>>> I deploy my solrcloud war into glassfish and set jetty.port (among > >>>>> other > >>>>> properties) to the GF domain port (e.g. 8181).' > >>>>> It starts successfully. > >>>>> > >>>>> I want zookeeper to run automatically within (as needed). How can I > >>>>> verify > >>>>> this or refer to > >>>>> the first/master server using zkHost from another node? (e.g. > >>>>> {host}:{port}) > >>>>> to form a cluster. > >>>>> > >>>>> I did this before a while ago, before solr 4.x was released, but > >>>>> things have > >>>>> changed. > >>>>> > >>>>> tips appreciated. thank you. > >>>>> Darren > >>>>> > >>>> > > > > -- > Anirudha P. Jadhav >