You're not using the correct httpclient jar for the solrj client version. This 
is some dependency hell. You'd better build 1.2 from source and change the 
versions in ivy. That would be easier i think. 
 
-----Original message-----
> From:devang pandey <devangpande...@gmail.com>
> Sent: Monday 8th July 2013 13:46
> To: user@nutch.apache.org
> Subject: nutch 1.2 solr 3.1 integration issue
> 
> I have crawled a site successfully using NUTCH 1.2 .Now I want to integrate
> this with solr 3.1 . Problem is when I am issuing command $ bin/nutch
> solrindex http://localhost:8080/solr/ crawl/crawldb crawl/linkdb cra
> wl/segments/* an error  occurs. I am attaching my nutch logs
> 
> Please help me to solve this issue
> java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpException
> at org.apache.nutch.indexer.solr.SolrWriter.open(SolrWriter.java:44)
> at
> org.apache.nutch.indexer.IndexerOutputFormat.getRecordWriter(IndexerOutputFormat.java:42)
> at org.apache.hadoop.mapred.ReduceTask.runOldReducer(ReduceTask.java:433)
> at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:411)
> at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:216)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.commons.httpclient.HttpException
> at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
> ... 5 more
> 2013-07-08 17:11:29,369 ERROR solr.SolrIndexer - java.io.IOException: Job
> failed!
> 

Reply via email to