hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <ha...@cloudera.com>
Subject Re: Hadoop JARs and Eclipse
Date Wed, 05 Jun 2013 17:43:18 GMT
If your goal is to simply build an application, then you can use a
Maven project. Why do you require the whole of Hadoop's projects
itself on Eclipse when you can simply have the dependencies via a
maven pom.xml?

The following is what you can use in a simple maven app, to include
all necessary dependencies automatically, for example:


Then importing this project into Eclipse (using m2e plugin) would be
equivalent to "Adding all relevant Hadoop JARs to Eclipse".

On Wed, Jun 5, 2013 at 11:07 PM, John Lilley <john.lilley@redpoint.net> wrote:
> Well, I’ve failed and given up on building Hadoop in Eclipse.  Too many
> things go wrong with Maven plugins and m2e.
> But Hadoop builds just fine using the command-line, and it runs using
> Sandy’s development-node instructions.
> My strategy now is
> 1)      Tell Eclipse about all of the Hadoop JARs
> 2)      Make a project with the sample ApplicationMaster distributed shell
> and build it.
> Is there a shortcut for adding all relevant JARs to Eclipse?  They ended up
> in a lot of separate folders after the build and I can’t tell if there is
> one “target” containing all of the ones I need.
> Thanks
> John

Harsh J

View raw message