Yes, I cleaned and compiled with ant again and fixed. Because there were
some other jars at my lib somehow. How could do understand that there is
mix of jars? Just because of NoSuchMethodError or with something else?

2013/3/26 Mark Miller <markrmil...@gmail.com>

> java.lang.NoSuchMethodError:
>
> There must be something off with the jars you are using - a mix of
> versions or something.
>
> - Mark
>
> On Mar 26, 2013, at 5:18 PM, Furkan KAMACI <furkankam...@gmail.com> wrote:
>
> > I use Solr 4.2  on Centos 6.4 at AWS and I have deployed solr wars into
> two
> > different amazon instances at tomcats. *When I run them without solrcloud
> > they are OK.* However I want to use them as solrCloud. I want to start
> > embedded zookeper at one of them. When I run:
> >
> > ps aux | grep catalina
> >
> > I get that:
> >
> > /usr/java/default/bin/java
> > -Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties
> > -Dbootstrap_confdir=/usr/share/solrhome/collection1/conf
> > -Dcollection.configName=custom_conf -DnumShards=2 -DzkRun
> > -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> > -Djava.endorsed.dirs=/usr/share/tomcat/endorsed -classpath
> > /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar
> > -Dcatalina.base=/usr/share/tomcat -Dcatalina.home=/usr/share/tomcat
> > -Djava.io.tmpdir=/usr/share/tomcat/temp
> > org.apache.catalina.startup.Bootstrap start
> >
> > solrhome is my home of solr.
> >
> > my solr.xml has that:
> >
> >  <cores adminPath="/admin/cores" defaultCoreName="collection1"
> > host="${host:}" hostPort="${jetty.port:8080}"
> > hostContext="${hostContext:search}"
> > zkClientTimeout="${zkClientTimeout:15000}">
> >    <core name="collection1" instanceDir="collection1" />
> >  </cores>
> >
> > When I open webpage I get that error:
> > *
> > There are no SolrCores running.
> > Using the Solr Admin UI currently requires at least one SolrCore.*
> >
> > When I look catalina.out I see that:
> >
> > Mar 26, 2013 8:54:35 PM org.apache.solr.cloud.ZkController
> > publish
> >
> > INFO: publishing core=collection1
> > state=down
> >
> > Mar 26, 2013 8:54:35 PM org.apache.solr.cloud.ZkController
> > publish
> >
> > INFO: numShards not found on descriptor - reading it from system
> > property
> >
> > Mar 26, 2013 8:54:36 PM org.apache.solr.common.cloud.ZkStateReader
> > updateClusterState
> >
> > INFO: Updating cloud state from
> > ZooKeeper...
> >
> > Mar 26, 2013 8:54:36 PM
> org.apache.solr.cloud.Overseer$ClusterStateUpdater
> > updateState
> >
> > INFO: Update state numShards=2
> > message={
> >
> >
> > "operation":"state",
> >
> >
> > "core_node_name":null,
> >
> >
> > "numShards":"2",
> >
> >
> > "shard":null,
> >
> >
> > "roles":null,
> >
> >
> > "state":"down",
> >
> >
> > "core":"collection1",
> >
> >
> > "collection":"collection1",
> >
> >  "node_name":"**.**.***.**:8080_search",    // I have put * as ip
> >
> >
> >  "base_url":"http://**.**.***.**:8080/search"}  // I have put * as ip
> >
> >
> > Mar 26, 2013 8:54:36 PM
> org.apache.solr.cloud.Overseer$ClusterStateUpdater
> > createCollection
> >
> > INFO: Create collection collection1 with numShards
> > 2
> >
> > Mar 26, 2013 8:54:36 PM
> org.apache.solr.cloud.Overseer$ClusterStateUpdater
> > updateState
> >
> > INFO: Assigning new node to shard
> > shard=shard1
> >
> > Mar 26, 2013 8:54:36 PM
> org.apache.zookeeper.server.NIOServerCnxnFactory$1
> > uncaughtException
> >
> > SEVERE: Thread Thread[Thread-3,5,Overseer state updater.]
> > died
> >
> > java.lang.NoSuchMethodError:
> >
> org.apache.solr.common.cloud.SolrZkClient.setData(Ljava/lang/String;[BZ)Lorg/apache/zookeeper/data/Stat;
> >
> >        at
> > org.apache.solr.cloud.Overseer$ClusterStateUpdater.run(Overseer.java:144)
> >
> >        at
> > java.lang.Thread.run(Thread.java:722)
> >
> >
> > Mar 26, 2013 8:59:55 PM org.apache.solr.common.SolrException log
> > SEVERE: null:org.apache.solr.common.SolrException: Could not get shard_id
> > for core: collection1 coreNodeName:10.36.163.29:8080_search_collection1
> >        at
> >
> org.apache.solr.cloud.ZkController.doGetShardIdProcess(ZkController.java:1221)
> >
> >        at
> > org.apache.solr.cloud.ZkController.preRegister(ZkController.java:1290)
> >
> >        at
> > org.apache.solr.core.CoreContainer.registerCore(CoreContainer.java:861)
> >
> >        at
> > org.apache.solr.core.CoreContainer.register(CoreContainer.java:841)
> >
> >        at
> > org.apache.solr.core.CoreContainer$3.call(CoreContainer.java:638)
> >
> >        at
> > org.apache.solr.core.CoreContainer$3.call(CoreContainer.java:629)
> >
> >        at
> > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> >
> >        at
> > java.util.concurrent.FutureTask.run(FutureTask.java:166)
> >
> >        at
> > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> >
> >        at
> > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> >
> >        at
> > java.util.concurrent.FutureTask.run(FutureTask.java:166)
> >
> >        at
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> >
> >        at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> >
> >        at
> > java.lang.Thread.run(Thread.java:722)
> >
> >
> > Mar 26, 2013 8:59:55 PM org.apache.solr.core.SolrCore close
> > INFO: [collection1]  CLOSING SolrCore
> org.apache.solr.core.SolrCore@64e5472e
> > Mar 26, 2013 8:59:55 PM org.apache.solr.update.DirectUpdateHandler2 close
> > INFO: closing DirectUpdateHandler2{commits=0,autocommit
> > maxTime=15000ms,autocommits=0,soft
> >
> autocommits=0,optimizes=0,rollbacks=0,expungeDeletes=0,docsPending=0,adds=0,deletesById=0,deletesByQuery=0,errors=0,cumulative_adds=0,cumulative_deletesById=0,cumulative_deletesByQuery=0,cumulative_errors=0}
> >
> > Mar 26, 2013 8:59:55 PM org.apache.solr.update.SolrCoreState
> > decrefSolrCoreState
> >
> > INFO: Closing
> > SolrCoreState
> >
> > ****
> >
> > Mar 26, 2013 8:59:56 PM org.apache.catalina.startup.Catalina start
> > INFO: Server startup in 327928 ms
> > Mar 26, 2013 8:59:57 PM org.apache.solr.servlet.SolrDispatchFilter
> > handleAdminRequest
> > INFO: [admin] webapp=null path=/admin/cores
> > params={indexInfo=false&_=1364331591032&wt=json} status=0 QTime=2
> >
> > search is my context as like solr that is given at example at solr wiki.
> >
> > What may be the reason, I have checked everything but couldn't find
> > anything. If you want to see any other configuration file you are
> welcome,
> > I can post it too.
> > Any ideas will be very good, cause it take too time for me trying to
> solve
> > the problem.
>
>

Reply via email to