From user-return-15949-apmail-hadoop-common-user-archive=hadoop.apache.org@hadoop.apache.org Wed Jul 2 17:53:30 2014 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 067B411FF0 for ; Wed, 2 Jul 2014 17:53:30 +0000 (UTC) Received: (qmail 84148 invoked by uid 500); 2 Jul 2014 17:53:26 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 84038 invoked by uid 500); 2 Jul 2014 17:53:25 -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 84013 invoked by uid 99); 2 Jul 2014 17:53:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2014 17:53:25 +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 (athena.apache.org: domain of rajat.85@gmail.com designates 209.85.223.175 as permitted sender) Received: from [209.85.223.175] (HELO mail-ie0-f175.google.com) (209.85.223.175) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2014 17:53:20 +0000 Received: by mail-ie0-f175.google.com with SMTP id tp5so9832582ieb.34 for ; Wed, 02 Jul 2014 10:52:59 -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=16K6zS/jLqsWYS+BieocMC7UQxnF+pU7TTx/IpfYMrY=; b=FMEbUPx0T56BLCQwcpeYNV84z9oG5wUss7QSEfSZ567lQSa2Qmm/7QU8vjCPC+RZke mcfb3UoIliFuyUjUTQ9QhqYOhZzfzBD0Shz3AkaaIyTEmpLU1l+8FtCh+3cLwpDG+2W3 dG5FoCY5QPzXXw+MZuPQKAXa7674mmePdoXFLkTVFBLcg21fd/2tnCWYVyKttpbv1P50 WtngR/ftPL6SfzLSTH22fncinJ6g8HKnT2g3+QdtkmLH4LLOjcP1lxR2mZXv20Kpd1kN rjElSb9zHuQ0rh9XD2DBACUxosvTJs+qgRUSJsp/HLMUluj23xIcqcwg2dABF9BrgHxq w9nQ== X-Received: by 10.50.79.164 with SMTP id k4mr6410652igx.12.1404323579625; Wed, 02 Jul 2014 10:52:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.229.43 with HTTP; Wed, 2 Jul 2014 10:52:39 -0700 (PDT) Reply-To: rajat.85@gmail.com In-Reply-To: References: From: Rajat Jain Date: Wed, 2 Jul 2014 10:52:39 -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=089e012947841d093f04fd39907e X-Virus-Checked: Checked by ClamAV on apache.org --089e012947841d093f04fd39907e Content-Type: text/plain; charset=UTF-8 hmm..Its interesting. When I added it in hadoop-hdfs-project/hadoop-hdfs/pom.xml it downloaded the jar locally. Any ideas why it doesn't work inside the yarn project? On Wed, Jul 2, 2014 at 10:09 AM, Rajat Jain wrote: > 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 >> > > --089e012947841d093f04fd39907e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
hmm..Its interesting. When I added it i= n hadoop-hdfs-project/hadoop-hdfs/pom.xml it downloaded the jar locally. An= y ideas why it doesn't work inside the yarn project?


On Wed,= Jul 2, 2014 at 10:09 AM, Rajat Jain <rajat.85@gmail.com> w= rote:
I tried = adding the dependency in hadoop-project/pom.xml (because thats where many o= ther 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-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 <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


--089e012947841d093f04fd39907e--