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 50EAD11F61 for ; Wed, 2 Jul 2014 05:12:18 +0000 (UTC) Received: (qmail 59131 invoked by uid 500); 2 Jul 2014 05:12:12 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 59019 invoked by uid 500); 2 Jul 2014 05:12:12 -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 59009 invoked by uid 99); 2 Jul 2014 05:12:12 -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 05:12:12 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ozawa.tsuyoshi@gmail.com designates 209.85.212.170 as permitted sender) Received: from [209.85.212.170] (HELO mail-wi0-f170.google.com) (209.85.212.170) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2014 05:12:09 +0000 Received: by mail-wi0-f170.google.com with SMTP id cc10so8435875wib.3 for ; Tue, 01 Jul 2014 22:11:45 -0700 (PDT) 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 :content-type; bh=tiqCmDuSgCMtqJVRxD5+8ym7Y9uGVctFG/O0/LHTf7k=; b=A3qAluY11LAJpTMwTp47Zabs5FYowgDBuH80afc4x/rUgq/V3Ni1dw5nLHwtDWvd2A nuZfaXJ/U/p6oZJGkP4tw8NPAg9SraHWUr+9/g6vIl6G5TTyQuuNlYXu0N1PSJ0hG0a/ lS8KE8c4IDTpRlRqD35amEYwCXCVHG0kMYBSWiuozVbTk3CcvbHie0mpvDaeEKYmGVuB GRfsMdr2E8fJxlK5Gpj6DFPnnG5jE1+SUJQG/NA3HGIx+IZZxOx0/8iSQRl/Xcc2aT/m TsJLe+xZ3hEV2/FJ5ZlNON27m/eGGXqxqCxLk3UYTwcjHDKLiBh8YJDPaP2wQsyh4ujX +VJQ== MIME-Version: 1.0 X-Received: by 10.181.8.198 with SMTP id dm6mr40382249wid.30.1404277905215; Tue, 01 Jul 2014 22:11:45 -0700 (PDT) Received: by 10.216.172.70 with HTTP; Tue, 1 Jul 2014 22:11:45 -0700 (PDT) In-Reply-To: References: Date: Wed, 2 Jul 2014 14:11:45 +0900 Message-ID: Subject: Re: Downloading a jar to hadoop's lib folder (classpath) From: Tsuyoshi OZAWA To: "user@hadoop.apache.org" , rajat.85@gmail.com Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org > 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