Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3584111DEB for ; Wed, 2 Jul 2014 17:10:53 +0000 (UTC) Received: (qmail 73580 invoked by uid 500); 2 Jul 2014 17:10:48 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 73471 invoked by uid 500); 2 Jul 2014 17:10:48 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 73461 invoked by uid 99); 2 Jul 2014 17:10:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2014 17:10:48 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rajat.85@gmail.com designates 209.85.213.173 as permitted sender) Received: from [209.85.213.173] (HELO mail-ig0-f173.google.com) (209.85.213.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2014 17:10:43 +0000 Received: by mail-ig0-f173.google.com with SMTP id uq10so6920220igb.12 for ; Wed, 02 Jul 2014 10:10:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=lhAncwy9A3Y2xNgTQkmTXl+PSkpgJrJoIH5Srrv3Wv8=; b=u5CK3spIy/+VFP5dEqY165GlGiIL2QkCdpzXf2wFSPRGv+2fBVsBOxVbThS1qW2VmA n/v3hfZ+oPgKWDnFh2UW/GJylmUz1lzsI6dXVCPy2OyHj1sIcXFvo40OCc1STK8vYn9e 3yTxhK7Hu/vndzl4i/NuQNmZQi3uC0xJruV7fv5O8k4MZwY+iDAFYk3GSeclc1E8NMon EOHqTpKxWPugvg9+THbzmV4IJMWPalcwUw3+gJGxALDGx0JBApMFVcjMGM8ofCJiZAqk h7tOyzKBWIh6HIramQfk91FC954gv311X/F+yfc/A9vszaxzp9fpsG3/QxrhovqZISDd b1zA== X-Received: by 10.42.68.18 with SMTP id v18mr4946407ici.1.1404321018849; Wed, 02 Jul 2014 10:10:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.229.43 with HTTP; Wed, 2 Jul 2014 10:09:58 -0700 (PDT) Reply-To: rajat.85@gmail.com In-Reply-To: References: From: Rajat Jain Date: Wed, 2 Jul 2014 10:09:58 -0700 Message-ID: Subject: Re: Downloading a jar to hadoop's lib folder (classpath) To: Tsuyoshi OZAWA Cc: "user@hadoop.apache.org" Content-Type: multipart/alternative; boundary=20cf303636d97ab0cf04fd38f774 X-Virus-Checked: Checked by ClamAV on apache.org --20cf303636d97ab0cf04fd38f774 Content-Type: text/plain; charset=UTF-8 I tried adding the dependency in hadoop-project/pom.xml (because thats where many other jars are defined too). But it didn't work for me. Any other ideas? Thanks, Rajat On Tue, Jul 1, 2014 at 10:11 PM, Tsuyoshi OZAWA wrote: > > I added it in the pom.xml file (inside > hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-resourcemanager/pom.xml) > > mvn package -Pdist,native -Dtar .... > > How about editing hadoop-project/pom.xml and add your dependency to > it? I think it will work. > > Thanks, > - Tsuyoshi > > On Wed, Jul 2, 2014 at 1:53 PM, Rajat Jain wrote: > > Hi, > > > > I have made some changes to hadoop2 code which requires a jar's > dependency. > > I added it in the pom.xml file (inside > > > hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-resourcemanager/pom.xml) > > which makes sure that my code compiles. However, I'm unable to run the > > daemon because ResourceManager fails with ClassNotFound exception. > > Basically, when I ran > > > > mvn package -Pdist,native -Dtar .... > > > > it did not download the dependency jar (which is present in my local .m2) > > into the lib/ folder. How do I make sure that the jar is downloaded to my > > lib path? > > > > Thanks, > > Rajat > > > > -- > - Tsuyoshi > --20cf303636d97ab0cf04fd38f774 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I tried adding the dependency in hadoop= -project/pom.xml (because thats where many other jars are defined too). But= it didn't work for me. Any other ideas?

Thanks,
Rajat


On Tue, Jul 1, 2014 at 10:11 PM, Tsuyosh= i OZAWA <ozawa.tsuyoshi@gmail.com> wrote:
> =C2=A0I added it in the pom.xml file (inside hadoop-ya= rn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-resourcemanager/pom.x= ml)
> mvn package -Pdist,native -Dtar ....

How about editing hadoop-project/pom.xml and add your dependency to it? I think it will work.

Thanks,
- Tsuyoshi

On Wed, Jul 2, 2014 at 1:53 PM, Rajat Jain <rajat.85@gmail.com> wrote:
> Hi,
>
> I have made some changes to hadoop2 code which requires a jar's de= pendency.
> I added it in the pom.xml file (inside
> hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-resourc= emanager/pom.xml)
> which makes sure that my code compiles. However, I'm unable to run= the
> daemon because ResourceManager fails with ClassNotFound exception.
> Basically, when I ran
>
> mvn package -Pdist,native -Dtar ....
>
> it did not download the dependency jar (which is present in my local .= m2)
> into the lib/ folder. How do I make sure that the jar is downloaded to= my
> lib path?
>
> Thanks,
> Rajat



--
- Tsuyoshi

--20cf303636d97ab0cf04fd38f774--