I am using: bin/nutch solrindex http://localhost:8983/solr -index bin/nutch solrindex http://localhost:8983/solr -reindex
I don't get this error anymore. By the wy who sets jetty.port? 2013/3/24 Jan Høydahl <jan....@cominvent.com> > How have you setup Nutch to index to Solr? Are you running this over HTTP > between two different servers? > > The jetty.port is a silly name, but you can rename it anything you like. > Its only task is to select which port to start an embedded ZooKeeper at if > you use -DzkRun. If you don't, just forget about it. > > -- > Jan Høydahl, search solution architect > Cominvent AS - www.cominvent.com > Solr Training - www.solrtraining.com > > 23. mars 2013 kl. 14:34 skrev Furkan KAMACI <furkankam...@gmail.com>: > > > Hi Jan; > > > > I will check the jar versions. By the way I think that I should create a > > solr home directory for my application (my application is that: I use > Nutch > > to crawl web sites and use Solr to index them). Which folder from Solr > > sources code folders (maybe lucene-solr/solr/example/example-DIH/solr?) > > should I copy to somewhere and pass its path that is solr home as JVM > > parameter? And I don't know what extra changes should I do for my > situation > > (nutch crawling and solr indexing) > > > > At solr.xml there is a field ${jetty.port:} and I didn't define a port > for > > it? I use tomcat and it runs at 8080 and I think jetty port is 8983 > that's > > why I think that there may be a confusing point? > > > > 2013/3/23 Jan Høydahl <jan....@cominvent.com> > > > >> Are you 100% sure you use the exact jars for 4.1.0 *everywhere*, and > that > >> you're not blending older versions from the Nutch distro in your > classpath > >> here? > >> > >>> Any ideas? > >> BTW: What was your question here regarding Jetty vs Tomcat? > >> > >> -- > >> Jan Høydahl, search solution architect > >> Cominvent AS - www.cominvent.com > >> Solr Training - www.solrtraining.com > >> > >> 23. mars 2013 kl. 00:50 skrev Furkan KAMACI <furkankam...@gmail.com>: > >> > >>> I just indicated that JVM parameter: > >>> > >>> -Dsolr.solr.home=/home/projects/lucene-solr/solr/solr_home > >>> > >>> solr_home is where is my config files etc. stands. My solr.xml has that > >>> lines: > >>> > >>> <cores adminPath="/admin/cores" defaultCoreName="collection1" > >>> host="${host:}" hostPort="${jetty.port:}" hostContext="${hostContext:}" > >>> zkClientTimeout="${zkClientTimeout:15000}"> > >>> <core name="collection1" instanceDir="collection1"/> > >>> </cores> > >>> > >>> On the other hand I run it from my tomcat without using example > embedded > >>> jetty start.jar. > >>> > >>> Any ideas? > >>> > >>> 2013/3/22 Furkan KAMACI <furkankam...@gmail.com> > >>> > >>>> I use Solr 4.1.0 and Nutch 2.1, Java 1.7.0_17, Tomcat 7.0, Intellij > IDEA > >>>> 12.with a Centos 6.4 at my 64 bit computer. > >>>> > >>>> I run that command succesfully: > >>>> > >>>> bin/nutch solrindex http://localhost:8080/solr -index > >>>> > >>>> However when I run that command: > >>>> > >>>> bin/nutch solrindex http://localhost:8080/solr -reindex > >>>> > >>>> I get that error : > >>>> > >>>> Mar 22, 2013 6:48:27 PM org.apache.solr.common.SolrException log > >>>> SEVERE: null:java.lang.RuntimeException: java.lang.NoSuchMethodError: > >>>> > >> > org.apache.lucene.index.IndexWriter.updateDocument(Lorg/apache/lucene/index/Term;Lorg/apache/lucene/index/IndexDocument;Lorg/apache/lucene/analysis/Analyzer;)V > >>>> at > >>>> > >> > org.apache.solr.servlet.SolrDispatchFilter.sendError(SolrDispatchFilter.java:653) > >>>> at > >>>> > >> > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:366) > >>>> at > >>>> > >> > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:141) > >>>> at > >>>> > >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) > >>>> at > >>>> > >> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) > >>>> at > >>>> > >> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) > >>>> at > >>>> > >> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) > >>>> at > >>>> > >> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) > >>>> at > >>>> > >> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) > >>>> at > >>>> > >> > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936) > >>>> at > >>>> > >> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) > >>>> at > >>>> > >> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) > >>>> at > >>>> > >> > org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004) > >>>> at > >>>> > >> > org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) > >>>> at > >>>> > >> > org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) > >>>> 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) > >>>> Caused by: java.lang.NoSuchMethodError: > >>>> > >> > org.apache.lucene.index.IndexWriter.updateDocument(Lorg/apache/lucene/index/Term;Lorg/apache/lucene/index/IndexDocument;Lorg/apache/lucene/analysis/Analyzer;)V > >>>> at > >>>> > >> > org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:201) > >>>> at > >>>> > >> > org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:69) > >>>> at > >>>> > >> > org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:51) > >>>> at > >>>> > >> > org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalAdd(DistributedUpdateProcessor.java:451) > >>>> at > >>>> > >> > org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:587) > >>>> at > >>>> > >> > org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:346) > >>>> at > >>>> > >> > org.apache.solr.update.processor.LogUpdateProcessor.processAdd(LogUpdateProcessorFactory.java:100) > >>>> at > >>>> > >> > org.apache.solr.handler.loader.XMLLoader.processUpdate(XMLLoader.java:246) > >>>> at org.apache.solr.handler.loader.XMLLoader.load(XMLLoader.java:173) > >>>> at > >>>> > >> > org.apache.solr.handler.UpdateRequestHandler$1.load(UpdateRequestHandler.java:92) > >>>> at > >>>> > >> > org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:74) > >>>> at > >>>> > >> > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135) > >>>> at org.apache.solr.core.SolrCore.execute(SolrCore.java:1812) > >>>> at > >>>> > >> > org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:639) > >>>> at > >>>> > >> > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:345) > >>>> ... 16 more > >>>> > >> > >> > >