Apache Flink
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Go to file
Chesnay Schepler 9911e523f1 [hotfix][travis] Fix caching of misc job
Adding the e2e-pre-commit profile activation only to the misc profile broke the caching
5 years ago
.github [FLINK-12590][docs] Use HTTPS for all Flink links 6 years ago
docs [hotfix][documentation] Fix wrong time semantics description 5 years ago
flink-annotations [FLINK-15698][docs] Restructure the Configuration docs 5 years ago
flink-clients [FLINK-11373] Don't cut of error message in CliFrontend 5 years ago
flink-connectors [hotfix][build] Remove unnecessary log4j files 5 years ago
flink-container [hotfix][build] Remove unnecessary log4j files 5 years ago
flink-contrib Update version to 1.11-SNAPSHOT 5 years ago
flink-core [hotfix][docs] Improve description of 'high-availability.jobmanager.port' config option. 5 years ago
flink-dist [hotfix][build] Add depMgmt entry for flink-shaded-hadoop 5 years ago
flink-docs [FLINK-15824][docs] (follow-up) Simple improvements/cleanups on @SectionOption 5 years ago
flink-end-to-end-tests [hotfix][e2e] Add retry timeout to kafka broker startup 5 years ago
flink-examples [FLINK-15935][example] Add Streaming Window SQL example 5 years ago
flink-filesystems [hotfix][build] Add depMgmt entry for flink-shaded-hadoop 5 years ago
flink-formats [hotfix][build] Add depMgmt entry for flink-shaded-hadoop 5 years ago
flink-fs-tests [hotfix][build] Add depMgmt entry for flink-shaded-hadoop 5 years ago
flink-java [FLINK-15690][core] In environments, call configure() in constructors with passed Configuration 5 years ago
flink-jepsen [FLINK-15372][core][config] Remove 'total-' from total process memory config key. 5 years ago
flink-kubernetes [FLINK-15868] Pin jackson-dataformat-yaml dependency to 2.10.1 5 years ago
flink-libraries [FLINK-15627][cep] Correct the wrong naming of compareMaps in NFATestUtilities 5 years ago
flink-mesos [hotfix][build] Remove unnecessary log4j files 5 years ago
flink-metrics [hotfix][tests] Add "javax.management.*" to PowerMock ignore list 5 years ago
flink-ml-parent [FLINK-13596][ml] Improve fallback conversion and test for Table transformation. 5 years ago
flink-optimizer Update version to 1.11-SNAPSHOT 5 years ago
flink-python [FLINK-15897][python] Defer the deserialization of the Python UDF execution results 5 years ago
flink-queryable-state [FLINK-15371][core][config] Use the new type definition for config options of memory types in TaskManagerOptions. 5 years ago
flink-quickstart [FLINK-15335] Replace `add-dependencies-for-IDEA` profile 5 years ago
flink-runtime [FLINK-15618][runtime] Remove unused JobTimeoutException 5 years ago
flink-runtime-web [FLINK-14270][web] Support to display more metrics at once (#10689) 5 years ago
flink-scala [FLINK-15690][core] In environments, call configure() in constructors with passed Configuration 5 years ago
flink-scala-shell [FLINK-15552][table] Use thread context classloader to find factories in TableFactoryService 5 years ago
flink-shaded-curator Update version to 1.11-SNAPSHOT 5 years ago
flink-state-backends [hotfix][runtime] Small improvements in log messages for Task and RocksDB Backend 5 years ago
flink-streaming-java [FLINK-15811][task] report CancelTaskException on SourceStreamTask cancellation 5 years ago
flink-streaming-scala [FLINK-15533] Deprecate text sink facilitation methods in DataStream 5 years ago
flink-table [FLINK-15935][table] Fix watermark can't work when depending both on flink planner and blink planner in project 5 years ago
flink-test-utils-parent [FLINK-15053][runtime] Escape all dynamic property values for taskmanager 5 years ago
flink-tests [hotfix][build] Add depMgmt entry for flink-shaded-hadoop 5 years ago
flink-walkthroughs [FLINK-15335] Replace `add-dependencies-for-IDEA` profile 5 years ago
flink-yarn [hotfix][build] Remove unnecessary log4j files 5 years ago
flink-yarn-tests [hotfix] Rename TaskExecutorResourceSpec to TaskExecutorProcessSpec 5 years ago
licenses [FLINK-14018][python] Package cloudpickle in flink for ease of use for Flink Python users 5 years ago
tools [hotfix][travis] Fix caching of misc job 5 years ago
.editorconfig
.gitattributes
.gitignore [FLINK-14306][python] Add the code-generated flink_fn_execution_pb2.py to the source code 5 years ago
.travis.yml [hotfix][travis] Fix caching of misc job 5 years ago
LICENSE [FLINK-10987] Update source LICENSE & NOTICE files 6 years ago
NOTICE [FLINK-14984][web] Remove old WebUI 5 years ago
README.md [hotfix] Update README 5 years ago
azure-pipelines.yml [FLINK-13978] Add azure-pipelines.yml 5 years ago
pom.xml [hotfix][build] Add depMgmt entry for flink-shaded-hadoop 5 years ago

README.md

Apache Flink

Apache Flink is an open source stream processing framework with powerful stream- and batch-processing capabilities.

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

Features

  • A streaming-first runtime that supports both batch processing and data streaming programs

  • Elegant and fluent APIs in Java and Scala

  • A runtime that supports very high throughput and low event latency at the same time

  • Support for event time and out-of-order processing in the DataStream API, based on the Dataflow Model

  • Flexible windowing (time, count, sessions, custom triggers) across different time semantics (event time, processing time)

  • Fault-tolerance with exactly-once processing guarantees

  • Natural back-pressure in streaming programs

  • Libraries for Graph processing (batch), Machine Learning (batch), and Complex Event Processing (streaming)

  • Built-in support for iterative programs (BSP) in the DataSet (batch) API

  • Custom memory management for efficient and robust switching between in-memory and out-of-core data processing algorithms

  • Compatibility layers for Apache Hadoop MapReduce

  • Integration with YARN, HDFS, HBase, and other components of the Apache Hadoop ecosystem

Streaming Example

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

val text = env.socketTextStream(host, port, '\n')

val windowCounts = text.flatMap { w => w.split("\\s") }
  .map { w => WordWithCount(w, 1) }
  .keyBy("word")
  .timeWindow(Time.seconds(5))
  .sum("count")

windowCounts.print()

Batch Example

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

val text = env.readTextFile(path)

val counts = text.flatMap { w => w.split("\\s") }
  .map { w => WordWithCount(w, 1) }
  .groupBy("word")
  .sum("count")

counts.writeAsCsv(outputPath)

Prerequisites for building Flink:

  • Unix-like environment (we use Linux, Mac OS X, Cygwin, WSL)
  • Git
  • Maven (we recommend version 3.2.5 and require at least 3.1.1)
  • Java 8 or 11 (Java 9 or 10 may work)
git clone https://github.com/apache/flink.git
cd flink
mvn clean package -DskipTests # this will take up to 10 minutes

Flink is now installed in build-target.

NOTE: Maven 3.3.x can build Flink, but will not properly shade away certain dependencies. Maven 3.1.1 creates the libraries properly. To build unit tests with Java 8, use Java 8u51 or above to prevent failures in unit tests that use the PowerMock runner.

The Flink committers use IntelliJ IDEA to develop the Flink codebase. We recommend IntelliJ IDEA for developing projects that involve Scala code.

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

NOTE: From our experience, this setup does not work with Flink due to deficiencies of the old Eclipse version bundled with Scala IDE 3.0.3 or due to version incompatibilities with the bundled Scala version in Scala IDE 4.4.1.

We recommend to use IntelliJ instead (see above)

Support

Dont 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: https://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.