You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-user@hadoop.apache.org by "S.L" <si...@gmail.com> on 2013/12/11 17:26:11 UTC

Hadoop 2.2 HttpCleint Jar Mismatch

Hello experts,

I am consistently running into this excepition , googling tells me that
this is because of the Jar mismatch between Hadoop and the Nutch Job , with
Hadoop2.2 using older version of the HttpClient.

I am not able to figure out how I could make  Hadoop 2.2 pickup the jars
from the sumitted job (which is using the old map reduce API) , can some
one who has gone thru this before let me know ? Thanks.

2013-12-10 23:00:09,396 INFO [FetcherThread]
org.apache.nutch.fetcher.Fetcher: fetch of http://www.xyz.com/ failed
with: java.lang.NoSuchMethodError:
org.apache.http.impl.conn.SchemeRegistryFactory.createSystemDefault()Lorg/apache/http/conn/scheme/SchemeRegistry;
	at org.apache.http.impl.client.SystemDefaultHttpClient.createClientConnectionManager(SystemDefaultHttpClient.java:118)
	at org.apache.http.impl.client.AbstractHttpClient.getConnectionManager(AbstractHttpClient.java:445)
	at org.apache.solr.client.solrj.impl.HttpClientUtil.setMaxConnections(HttpClientUtil.java:179)
	at org.apache.solr.client.solrj.impl.HttpClientConfigurer.configure(HttpClientConfigurer.java:33)
	at org.apache.solr.client.solrj.impl.HttpClientUtil.configureClient(HttpClientUtil.java:115)
	at org.apache.solr.client.solrj.impl.HttpClientUtil.createClient(HttpClientUtil.java:105)
	at org.apache.solr.client.solrj.impl.HttpSolrServer.<init>(HttpSolrServer.java:154)
	at org.apache.solr.client.solrj.impl.HttpSolrServer.<init>(HttpSolrServer.java:127)