More experimenting:
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-core</artifactId>
<version>0.20.203.0</version>
<type>POM</type>
</dependency>
Works, but (as you indicate) gives the old Hadoop API.
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-mapred</artifactId>
<version>...</version>
<type>POM</type>
</dependency>
Doesn't work. I can't find a hadoop-mapred artifact when I search for one on
Maven Central <http://search.maven.org/>.
On Fri, Aug 12, 2011 at 2:47 PM, Luke Lu <[email protected]> wrote:
> Pre-0.21 (sustaining releases, large-scale tested) hadoop:
> <dependency>
> <groupId>org.apache.hadoop</groupId>
> <artifactId>hadoop-core</artifactId>
> <version>0.20.203.0</version>
> </dependency>
>
> Pre-0.23 (small scale tested) hadoop:
> <dependency>
> <groupId>org.apache.hadoop</groupId>
> <artifactId>hadoop-mapred</artifactId>
> <version>...</version>
> </dependency>
>
> Trunk (currently targeting 0.23.0, large-scale tested) hadoop WILL be:
> <dependency>
> <groupId>org.apache.hadoop</groupId>
> <artifactId>hadoop-mapreduce</artifactId>
> <version>...</version>
> </dependency>
>
> On Fri, Aug 12, 2011 at 2:20 PM, W.P. McNeill <[email protected]> wrote:
> > I'm building a Hadoop project using Maven. I want to add
> > Maven dependencies to my project. What do I do?
> >
> > I think the answer is I add a <dependency></dependency> section to my
> .POM
> > file, but I'm not sure what the contents of this section (groupId,
> > artifactId etc.) should be. Googling does not turn up a clear answer. Is
> > there a canonical Hadoop Maven dependency specification?
> >
>