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:
<dependencies>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
<version>2.0.4-alpha</version>
</dependency>
</dependencies>
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 <[email protected]> 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