hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Lilley <john.lil...@redpoint.net>
Subject RE: Hadoop JARs and Eclipse
Date Thu, 06 Jun 2013 18:24:50 GMT
Never mind, answered my own question... I just make a new maven project and add a dependency
to the pom.xml, I checked in ~/.m2 that the hadoop-client module is there.
john

-----Original Message-----
From: John Lilley [mailto:john.lilley@redpoint.net] 
Sent: Thursday, June 06, 2013 11:06 AM
To: user@hadoop.apache.org
Subject: RE: Hadoop JARs and Eclipse

If I am running from built code that was installed with mvn install Do I need to change the
pom.xml file to reflect that I am using local repository?
Thanks,
John


-----Original Message-----
From: Harsh J [mailto:harsh@cloudera.com] 
Sent: Wednesday, June 05, 2013 11:43 AM
To: <user@hadoop.apache.org>
Subject: Re: Hadoop JARs and Eclipse

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 <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

Mime
View raw message