java - Apache Solr: I have run this command in Cygwin Terminal. ./nutch crawl urls -dir newCrawl -solr http://localhost:8939/solr/ -depth 10 -topN 10 -
solrindexer: starting @ 2015-10-15 10:13:00
adding 90 documents:
java.io.ioexception: job failed! solrdeleteduplicates: starting @ 2015-10-15 10:13:11 solrdeleteduplicates: solr url: http://localhost:8939/solr/ exception in thread "main" java.io.ioexception: org.apache.solr.client.solrj.solrserverexception: java.net.connectexception: connection refused: connect @ org.apache.nutch.indexer.solr.solrdeleteduplicates$solrinputformat.getsplits(solrdeleteduplicates.java:200) @ org.apache.hadoop.mapred.jobclient.writeoldsplits(jobclient.java:810) @ org.apache.hadoop.mapred.jobclient.submitjobinternal(jobclient.java:781) @ org.apache.hadoop.mapred.jobclient.submitjob(jobclient.java:730) @ org.apache.hadoop.mapred.jobclient.runjob(jobclient.java:1249) @ org.apache.nutch.indexer.solr.solrdeleteduplicates.dedup(solrdeleteduplicates.java:373) @ org.apache.nutch.indexer.solr.solrdeleteduplicates.dedup(solrdeleteduplicates.java:353) @ org.apache.nutch.crawl.crawl.run(crawl.java:153) @ org.apache.hadoop.util.toolrunner.run(toolrunner.java:65) @ org.apache.nutch.crawl.crawl.main(crawl.java:55) caused by: org.apache.solr.client.solrj.solrserverexception: java.net.connectexception: connection refused: connect @ org.apache.solr.client.solrj.impl.commonshttpsolrserver.request(commonshttpsolrserver.java:478) @ org.apache.solr.client.solrj.impl.commonshttpsolrserver.request(commonshttpsolrserver.java:244) @ org.apache.solr.client.solrj.request.queryrequest.process(queryrequest.java:89) @ org.apache.solr.client.solrj.solrserver.query(solrserver.java:118) @ org.apache.nutch.indexer.solr.solrdeleteduplicates$solrinputformat.getsplits(solrdeleteduplicates.java:198) ... 9 more caused by: java.net.connectexception: connection refused: connect @ java.net.dualstackplainsocketimpl.connect0(native method) @ java.net.dualstackplainsocketimpl.socketconnect(dualstackplainsocketimpl.java:79) @ java.net.abstractplainsocketimpl.doconnect(abstractplainsocketimpl.java:345) @ java.net.abstractplainsocketimpl.connecttoaddress(abstractplainsocketimpl.java:206) @ java.net.abstractplainsocketimpl.connect(abstractplainsocketimpl.java:188) @ java.net.plainsocketimpl.connect(plainsocketimpl.java:172) @ java.net.sockssocketimpl.connect(sockssocketimpl.java:392) @ java.net.socket.connect(socket.java:589) @ java.net.socket.connect(socket.java:538) @ java.net.socket.<init>(socket.java:434) @ java.net.socket.<init>(socket.java:286) @ org.apache.commons.httpclient.protocol.defaultprotocolsocketfactory.createsocket(defaultprotocolsocketfactory.java:80) @ org.apache.commons.httpclient.protocol.defaultprotocolsocketfactory.createsocket(defaultprotocolsocketfactory.java:122) @ org.apache.commons.httpclient.httpconnection.open(httpconnection.java:707) @ org.apache.commons.httpclient.httpmethoddirector.executewithretry(httpmethoddirector.java:387) @ org.apache.commons.httpclient.httpmethoddirector.executemethod(httpmethoddirector.java:171) @ org.apache.commons.httpclient.httpclient.executemethod(httpclient.java:397) @ org.apache.commons.httpclient.httpclient.executemethod(httpclient.java:323) @ org.apache.solr.client.solrj.impl.commonshttpsolrserver.request(commonshttpsolrserver.java:422) ... 13 more
how resolve issue?
your solr url not valid. need write core well. default core collection1. therefore, in case url http://localhost:8983/solr/collection1
Comments
Post a Comment