== Declaring Hadoop dependencies

Spring for Apache Hadoop provides necessary transitive dependencies via
the project's Maven POM files. The default is using Apache Hadoop 2.6.x
but there are additional versions available for other Hadoop distributions
like Pivotal HD, Hortonworks Data Platform or Cloudera CDH. By specifying
the desired version, your project will automatically resolve the correct
Hadoop distribution dependencies.

[source,xml]
.Apache Hadoop 2.6.x
----
<dependencies>
    <dependency>
        <groupId>org.springframework.data</groupId>
        <artifactId>spring-yarn-boot</artifactId>
        <version>2.1.0.RELEASE</version>
    </dependency>
</dependencies>
----

[source,xml]
.Pivotal HD 2.1
----
<dependencies>
    <dependency>
        <groupId>org.springframework.data</groupId>
        <artifactId>spring-yarn-boot</artifactId>
        <version>2.1.0.RELEASE-phd21</version>
    </dependency>
</dependencies>
----

[source,xml]
.Hortonworks Data Platform 2.2
----
<dependencies>
    <dependency>
        <groupId>org.springframework.data</groupId>
        <artifactId>spring-yarn-boot</artifactId>
        <version>2.1.0.RELEASE-hdp22</version>
    </dependency>
</dependencies>
----

[source,xml]
.Cloudera CDH 5.x
----
<dependencies>
    <dependency>
        <groupId>org.springframework.data</groupId>
        <artifactId>spring-yarn-boot</artifactId>
        <version>2.1.0.RELEASE-cdh5</version>
    </dependency>
</dependencies>
----

[source,xml]
.Apache Hadoop 2.4.x
----
<dependencies>
    <dependency>
        <groupId>org.springframework.data</groupId>
        <artifactId>spring-yarn-boot</artifactId>
        <version>2.1.0.RELEASE-hadoop24</version>
    </dependency>
</dependencies>
----

[source,xml]
.Apache Hadoop 2.5.x
----
<dependencies>
    <dependency>
        <groupId>org.springframework.data</groupId>
        <artifactId>spring-yarn-boot</artifactId>
        <version>2.1.0.RELEASE-hadoop25</version>
    </dependency>
</dependencies>
----

