Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Mirror of Apache Flink
Java Scala JavaScript Python CSS Shell Other
Failed to load latest commit information.
docs [FLINK-2291] [runtime] Add ZooKeeper support to elect a leader from a…
flink-clients [FLINK-2291] [runtime] Add ZooKeeper support to elect a leader from a…
flink-contrib [FLINK-2291] [runtime] Add ZooKeeper support to elect a leader from a…
flink-core [scripts] Fixes correct Flink bin path usage in scripts
flink-dist [scripts] Adds example settings for zookeeper ha to default flink-con…
flink-examples [FLINK-1882] Removed RemotedCollector classes
flink-java [FLINK-2565] Support primitive arrays as keys
flink-java8 Version bumped to 0.10-SNAPSHOT
flink-optimizer [tests] Move UnionClosedBranchingTest to optimizer tests
flink-quickstart [FLINK-2453] [pom] Move Java source and target version to 1.7
flink-runtime-web [FLINK-2291] [runtime] Add ZooKeeper support to elect a leader from a…
flink-runtime [core][runtime] move SerializedValueTest from runtime to core
flink-scala [FLINK-2555] Properly pass security credentials in the Hadoop Input/O…
flink-shaded-hadoop [FLINK-2291] [runtime] Add ZooKeeper support to elect a leader from a…
flink-staging [core][runtime] move SerializedValueTest from runtime to core
flink-test-utils [FLINK-2291] [runtime] Add ZooKeeper support to elect a leader from a…
flink-tests [FLINK-2291] [runtime] Add ZooKeeper support to elect a leader from a…
flink-yarn-tests [FLINK-2555] Properly pass security credentials in the Hadoop Input/O…
flink-yarn [FLINK-2291] [runtime] Add ZooKeeper support to elect a leader from a…
tools [FLINK-2291] [runtime] Add ZooKeeper support to elect a leader from a…
.gitattributes [hotfix] Fix repository language statistics by adjusting .gitattributes
.gitignore [FLINK-2358] [dashboard] Add first stub of angular.js based dashboard.
.travis.yml [FLINK-2454] [buikd] Update Travis to drop JDK6 for tests
CONTRIBUTING.md Add CONTRIBUTING.md file with pointers to our guides
DEPENDENCIES [LICENSE] Update LICENSE and NOTICE files
LICENSE [FLINK-2358] [dashboard] Adding comments to web dashboard files, add …
NOTICE [FLINK-2358] [dashboard] Adding comments to web dashboard files, add …
README.md [FLINK-2453] [docs] Update README and setup docs to reflect requireme…
deploysettings.xml Updated all JobManager and TaskManager relevant test cases to work wi…
pom.xml [FLINK-2291] [runtime] Add ZooKeeper support to elect a leader from a…

README.md

Apache Flink

Apache Flink is an open source platform for scalable batch and stream data processing. Flink supports batch and streaming analytics, in one system. Analytical programs can be written in concise and elegant APIs in Java and Scala.

case class WordWithCount(word: String, count: Int)

val text = env.readTextFile(path)

val counts = text.flatMap { _.split("\\W+") }
  .map { WordWithCount(_, 1) }
  .groupBy("word")
  .sum("count")

counts.writeAsCsv(outputPath)

These are some of the unique features of Flink:

  • Hybrid batch/streaming runtime that supports batch processing and data streaming programs.
  • Custom memory management to guarantee efficient, adaptive, and highly robust switching between in-memory and out-of-core data processing algorithms.
  • Flexible and expressive windowing semantics for data stream programs.
  • Built-in program optimizer that chooses the proper runtime operations for each program.
  • Custom type analysis and serialization stack for high performance.

Learn more about Flink at http://flink.apache.org/

Building Apache Flink from Source

Prerequisites for building Flink:

  • Unix-like environment (We use Linux, Mac OS X, Cygwin)
  • git
  • Maven (at least version 3.0.4)
  • Java 7 or 8
git clone https://github.com/apache/flink.git
cd flink
mvn clean package -DskipTests # this will take up to 5 minutes

Flink is now installed in build-target

Developing Flink

The Flink committers use IntelliJ IDEA and Eclipse IDE to develop the Flink codebase.

Minimal requirements for an IDE are:

  • Support for Java and Scala (also mixed projects)
  • Support for Maven with Java and Scala

IntelliJ IDEA

The IntelliJ IDE supports Maven out of the box and offers a plugin for Scala development.

Check out our Setting up IntelliJ guide for details.

Eclipse Scala IDE

For Eclipse users, we recommend using Scala IDE 3.0.3, based on Eclipse Kepler. While this is a slightly older version, we found it to be the version that works most robustly for a complex project like Flink.

Further details, and a guide to newer Scala IDE versions can be found in the How to setup Eclipse docs.

Note: Before following this setup, make sure to run the build from the command line once (mvn clean install -DskipTests, see above)

  1. Download the Scala IDE (preferred) or install the plugin to Eclipse Kepler. See How to setup Eclipse for download links and instructions.
  2. Add the "macroparadise" compiler plugin to the Scala compiler. Open "Window" -> "Preferences" -> "Scala" -> "Compiler" -> "Advanced" and put into the "Xplugin" field the path to the macroparadise jar file (typically "/home/-your-user-/.m2/repository/org/scalamacros/paradise_2.10.4/2.0.1/paradise_2.10.4-2.0.1.jar"). Note: If you do not have the jar file, you probably did not run the command line build.
  3. Import the Flink Maven projects ("File" -> "Import" -> "Maven" -> "Existing Maven Projects")
  4. During the import, Eclipse will ask to automatically install additional Maven build helper plugins.
  5. Close the "flink-java8" project. Since Eclipse Kepler does not support Java 8, you cannot develop this project.

Support

Don’t hesitate to ask!

Contact the developers and community on the mailing lists if you need any help.

Open an issue if you found a bug in Flink.

Documentation

The documentation of Apache Flink is located on the website: http://flink.apache.org or in the docs/ directory of the source code.

Fork and Contribute

This is an active open-source project. We are always open to people who want to use the system or contribute to it. Contact us if you are looking for implementation tasks that fit your skills. This article describes how to contribute to Apache Flink.

About

Apache Flink is an open source project of The Apache Software Foundation (ASF). The Apache Flink project originated from the Stratosphere research project.

Something went wrong with that request. Please try again.