Skip to content
This repository was archived by the owner on Apr 5, 2022. It is now read-only.

Build with Pivotal HD 1.0

Thomas Risberg edited this page Aug 14, 2013 · 7 revisions

If you build your own applications with Maven targeting the Pivotal HD 1.0 distribution then you can use the Hadoop artifacts that now are available in the SpringSource Release Repository. The version to use for the artifacts is 2.0.2-alpha-gphd-2.0.1.0.

Spring for Apache Hadoop application using Maven

If you are using Spring for Apache Hadoop with Pivotal HD 1.0 then you need to use the SpringSource Milestone Repository instead of the Release Repository since the version of spring-data-hadoop you should use is in a milestone release at the moment.

Add the following repository to your Maven pom:

<repository>
 <id>org.springsource.maven.milestone</id>
 <name>SpringSource Maven Milestone Repository</name>
 <url>http://repo.springsource.org/libs-milestone</url>
</repository>

We have recently started publishing "flavors" of the Spring for Apache Hadoop project built against different Hadoop distributions. This allows for better transitive dependency resolution.

The dependency to use for the Pivotal HD 1.0 "flavor" of spring-data-hadoop is:

<dependency>
 <groupId>org.springframework.data</groupId>
 <artifactId>spring-data-hadoop</artifactId>
 <version>1.0.1.RC1-phd1</version>
</dependency>

Note: The phd1 suffix for the version will select the correct build that resolves the transitive dependencies for Pivotal HD 1.0.

Non-Spring Java application using Maven

Anyone using Maven to build a Java app with just plain Hadoop needs to add the following repository to the Maven pom:

<repository>
 <id>org.springsource.maven.milestone</id>
 <name>SpringSource Maven Release Repository</name>
 <url>http://repo.springsource.org/libs-release</url>
</repository>

With this repository added and by using 2.0.2-alpha-gphd-2.0.1.0 as the version for any hadoop dependencies the correct jars should be resolved.

Clone this wiki locally