hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajat Jain <rajat...@gmail.com>
Subject Re: Downloading a jar to hadoop's lib folder (classpath)
Date Wed, 02 Jul 2014 17:09:58 GMT
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 <ozawa.tsuyoshi@gmail.com>
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 <rajat.85@gmail.com> 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
>

Mime
View raw message