Check mapreduce.task.classpath.user.precedence and its equivalent property in different hadoop version. HADOOP_OPTS needs to work with this property being set to true. I met problem like yours. And playing with these parameters solved my problem.
On Wed, Jun 17, 2015 at 12:28 AM, adfel70 <adfe...@gmail.com> wrote: > We cannot downgrade httpclient in solrj5 because its using new features and > we dont want to start altering solr code, anyway we thought about upgrading > httpclient in hadoop but as Erick said its sounds more work than just put > the jar in the data nodes. > > About that flag we tried it, hadoop even has an environment variable > HADOOP_USER_CLASSPATH_FIRST but all our tests with that flag failed. > > We thought this is an issue that is more likely that solr users will > encounter rather than cloudera users, so we will be glad for a more elegant > solution or workaround than to replace the httpclient jar in the data nodes > > Thank you all for your responses > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/mapreduce-job-using-soirj-5-tp4212199p4212350.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- Regards, Shenghua (Daniel) Wan