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

Build with Cloudera CDH5

Thomas Risberg edited this page Aug 13, 2015 · 11 revisions

If you are using Spring for Apache Hadoop with Cloudera CDH5 then you need to add the following repository to your Maven pom:

<repository>
  <id>spring-release</id>
  <name>Spring Release Repository</name>
  <url>http://repo.spring.io/libs-release</url>
</repository>

Note: The Spring IO repository is caching Cloudera artifacts that the Spring for Apache Hadoop build is depending on.

Current: Spring for Apache Hadoop v2.2

If you build your own applications with Maven targeting Cloudera CDH5 then you can use the latest Spring for Apache Hadoop 2.2 release using a version of 2.2.0.RELEASE-cdh5.

Spring for Apache Hadoop v2.2 application using Maven

We are 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 Cloudera CDH5 "flavor" of spring-data-hadoop is:

<dependency>
  <groupId>org.springframework.data</groupId>
  <artifactId>spring-data-hadoop</artifactId>
  <version>2.2.0.RELEASE-cdh5</version>
</dependency>

Note: The cdh5 suffix for the spring-data-hadoop version will select the correct build that resolves the transitive dependencies for Cloudera CDH5.