Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 07C5318840 for ; Thu, 28 Jan 2016 21:54:29 +0000 (UTC) Received: (qmail 12524 invoked by uid 500); 28 Jan 2016 21:54:15 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 12400 invoked by uid 500); 28 Jan 2016 21:54:15 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 12389 invoked by uid 99); 28 Jan 2016 21:54:15 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jan 2016 21:54:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id D84FE1A055A for ; Thu, 28 Jan 2016 21:54:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.879 X-Spam-Level: ** X-Spam-Status: No, score=2.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id srlRhJWo_83P for ; Thu, 28 Jan 2016 21:54:14 +0000 (UTC) Received: from mail-vk0-f49.google.com (mail-vk0-f49.google.com [209.85.213.49]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 8F8D2204A0 for ; Thu, 28 Jan 2016 21:54:13 +0000 (UTC) Received: by mail-vk0-f49.google.com with SMTP id e6so31809052vkh.2 for ; Thu, 28 Jan 2016 13:54:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=dfoslPVKbyXT2EtYFNlQho4ylhxG44DiXlIp5797z8g=; b=PfLxRssduRsOHbpDPzpfdECQWY5QO2474b1SuIDKEZsGxNT1qP5YsMj/Q3XNAaAsjW BmXnNe8qbT2+WalrAjc8L+4cgQASZyINJ6BWor3e8uAJIEhySEUwhbE2vl1NjzZ457fF RRACNWtKF38JkGoZ1H9fXJq+UHgi+/RWR+g0DavaA6NCVTfk4iiZ7el7+OA6VLiMFXBF sncpggEQ/nOzug/d4R4DUZiM89srxySynXDLOKIiTYm17rrG/Yfxesx5+z+Yp0mp8LRU l7lfiKVlCjEcQgUi3Of2Ruc4gAsnFFlaQBdmPIXG2tzyxwp94iDbp8M5Ef6mfmOicuPa RHNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=dfoslPVKbyXT2EtYFNlQho4ylhxG44DiXlIp5797z8g=; b=NjXhYe/juD6/PNOxchc/+0sXv59y9Uz5b62kEwln41HTthhuWlIVssboF2SViCXJA0 zkiDUTsTdXESrbgcfc/YraZk/R+3zXO4rtNZX4HQHf0reX8DsGY4ObZjMLVu2HHUbHi6 QQOvgkE3Kg85E9E7+xrc6JGmUdtXQ6ljHywCb0Yl7ogZp1oifWH/hCrGZ588EjvStPb0 va3QQM8U7cJSfSG4mWFas+jOUtKC6daMZYrI0fPIvw9I3zrp2qqq1+raP2B/r1VFXPaF O9AXhkqS1vGRZXmPFsa13lNk5oT41xJgVy0wTd8RDkFrEiukW4YtIWAk6fx7vYnHuzxz sa9A== X-Gm-Message-State: AG10YOSLlJqhaOXwuzlcbeppKoWockQBqdRVWEVSHkvwGSb0BRA7hOW4xx3V/lxQTIkqNBZDujbNFlqyozIFFg== MIME-Version: 1.0 X-Received: by 10.31.58.83 with SMTP id h80mr3661566vka.149.1454018047347; Thu, 28 Jan 2016 13:54:07 -0800 (PST) Received: by 10.31.234.193 with HTTP; Thu, 28 Jan 2016 13:54:07 -0800 (PST) In-Reply-To: References: Date: Thu, 28 Jan 2016 13:54:07 -0800 Message-ID: Subject: Re: Hadoop library version issues and conflict From: Liren Ding To: Solomon Duskis Cc: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=001a114389d4359397052a6bf5f5 --001a114389d4359397052a6bf5f5 Content-Type: text/plain; charset=UTF-8 I saw a few posts mentioned the property "mapreduce.job.user.classpath.first" could be used to handle this situation. But it seems to have been deprecated in yarn. Does anyone know any alternative? On Thu, Jan 28, 2016 at 12:19 PM, Solomon Duskis wrote: > I'm not sure about the solution here, but it would be nice to have much > newer dependencies of everything. There are a host of issues with newer > libraries running in the same VM as hbase and hadoop. Even the newer hbase > libraries are 3+ year old. > > On Thu, Jan 28, 2016 at 2:33 PM, Liren Ding > wrote: > >> My MR job use following libs: >> >> - commons-codec-1.9, >> - commons-compress-1.7, >> - guava-12.0.1, >> - httpclient-4.3.1 >> - httpcore-4. >> >> But the versions in hadoop libs are: >> >> - commons-codec-1.4 >> - commons-compress-1.4.1 >> - guava-11.0.2 >> - httpclient-4.2.5 >> - httpcore-4.2.5 >> >> This conflict causes a "java.lang.NoSuchMethodError" error. One insane >> solution is replacing all libs allover the cluster with new versions. But >> the approach is not practical in production environment. Is there a decent >> way to solve the hadoop libraries version conflict issue? >> > > --001a114389d4359397052a6bf5f5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I saw a few posts mentioned the property "mapreduce.job.user.classpath.first" could b= e used to handle this situation. But it seems to have been deprecated in ya= rn. Does anyone know any alternative?


On Thu, Jan 28, 2016 at 12:19 PM, = Solomon Duskis <sduskis@gmail.com> wrote:
I'm not sure about the solution here, = but it would be nice to have much newer dependencies of everything.=C2=A0 T= here are a host of issues with newer libraries running in the same VM as hb= ase and hadoop.=C2=A0 Even the newer hbase libraries are 3+ year old.
=

On Thu, Jan 28, 2016 at 2:33 PM, Liren Ding <sky.gonna.bright@gmail.com> wrote:

My MR job use= following libs:

  • commons-codec-1.9,
  • commons-compress-1.7,
  • guava-12.0.1,
  • httpclient-4.3.1
  • htt= pcore-4.

But the versions in had= oop libs are:

  • commons-codec-1.4
  • commons-compress-1.4.1
  • guava-11.0.2
  • httpclient-4.2.5
  • <= li style=3D"margin:0px;padding:0px;border:0px;word-wrap:break-word">httpcor= e-4.2.5

This conflict causes a &= quot;java.lang.NoSuchMethodError" error. One insane solution is replac= ing all libs allover the cluster with new versions. But the approach is not= practical in production environment. Is there a decent way to solve the ha= doop libraries version conflict issue?



--001a114389d4359397052a6bf5f5--