Pick the Apache Flink package matching your Hadoop version.
Apache Flink 0.5.1 is our latest stable release.
Pick this package if you plan to use Flink with data stored in Hadoop 1.x.
Also pick this version if you don't plan to use Flink with Hadoop at all.
Pick this package if you plan to use Flink with data stored in Hadoop 2.x.
Pick this package if you plan to use Flink with Hadoop YARN.
You can add the following dependencies to your pom.xml
to include Apache Flink in your project.
<dependency>
<groupId>eu.stratosphere</groupId>
<artifactId>stratosphere-java</artifactId>
<version>0.5.1</version>
</dependency>
<dependency>
<groupId>eu.stratosphere</groupId>
<artifactId>stratosphere-clients</artifactId>
<version>0.5.1</version>
</dependency>
These dependencies include a local execution environment and thus support local testing.
0.5.1-hadoop2
as the version.stratosphere-java
artifact id with stratosphere-scala
.Apache Flink 0.6-SNAPSHOT is our latest development version.
You can download a packaged version of our nightly builds, which include the most recent development code. You can use them if you need a feature before its release. Only builds that pass all tests are published here.
Add the Sonatype Snapshot repository to your Maven pom.xml
:
<repositories>
<repository>
<id>snapshots-repo</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
You can now include Apache Flink as a Maven dependency (see above) with version 0.6-SNAPSHOT
.
You can checkout Apache Flink 0.6-SNAPSHOT and build it on your own machine.
git clone https://github.com/apache/incubator-flink
cd incubator-flink
mvn clean package -DskipTests
Note: Flink does not build with Oracle JDK 6. It runs with Oracle JDK 6.
If you want to build for Hadoop 2, activate the build profile via mvn clean package -DskipTests -Dhadoop.profile=2
.