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
Martijn Visser 492a886248
[FLINK-33704][Filesytems] Update GCS filesystems to latest available versions. This closes #23837
* [FLINK-33704][Filesystem] Update GCS filesystem dependencies

- Update GS SDK from 2.15.0 to 2.29.1
- Update GS Hadoop Connector from 2.2.15 to 2.2.18
- Update GS GRPC to highest shared version

* [FLINK-33704] Make NOTICE inclusion of com.google.re2j for GCS consistent

RE2J is listed for the other filesystems as Go license, we should remain consistent throughout the project
2 days ago
.github [FLINK-33642] Use docker image with jdk21 in CI 7 days ago
.idea
.mvn [FLINK-33501][ci] Makes use of Maven wrapper 4 days ago
docs [FLINK-33704][Filesytems] Update GCS filesystems to latest available versions. This closes #23837 2 days ago
flink-annotations
flink-architecture-tests [hotfix][doc] improve comments in archunit.properties 3 days ago
flink-clients [FLINK-6755] Support manual checkpoints triggering from CLI 3 days ago
flink-connectors [hotfix][doc] improve comments in archunit.properties 3 days ago
flink-container
flink-contrib
flink-core [FLINK-33364][core] Introduce standard YAML for flink configuration. 2 days ago
flink-dist [FLINK-33309] Set `-Djava.security.manager=allow` on JDK 18+ 4 weeks ago
flink-dist-scala
flink-docs
flink-dstl [FLINK-30863][state/changelog] Register local recovery files of changelog before notifyCheckpointComplete() 3 months ago
flink-end-to-end-tests [FLINK-33364][core] Introduce standard YAML for flink configuration. 2 days ago
flink-examples [FLINK-33581][core] Deprecate getter/setter methods related to state backend in the StreamExecutionEnvironment. 4 days ago
flink-external-resources [FLINK-33520] Avoid using FLINK_HOME to find test scripts 3 weeks ago
flink-filesystems [FLINK-33704][Filesytems] Update GCS filesystems to latest available versions. This closes #23837 2 days ago
flink-formats [hotfix][sequence-file][test] fix typo 2 days ago
flink-fs-tests [FLINK-28050][connectors] Deprecate StreamExecutionEnvironment#fromElements() 5 days ago
flink-java [FLINK-32978][flink-core] Migrate the usage of RichFunction#open(Configuration parameters) to RichFunction#open(OpenContext openContext) 3 months ago
flink-kubernetes [FLINK-33364][core] Introduce standard YAML for flink configuration. 2 days ago
flink-libraries [FLINK-28050][connectors] Deprecate StreamExecutionEnvironment#fromElements() 5 days ago
flink-metrics [FLINK-25857] Add committer metrics to track the status of committables 3 weeks ago
flink-optimizer [hotfix][optimizer] fix spotless violation 7 days ago
flink-python [FLINK-28050][connectors] Deprecate StreamExecutionEnvironment#fromElements() 5 days ago
flink-queryable-state [FLINK-32978][flink-core] Migrate the usage of RichFunction#open(Configuration parameters) to RichFunction#open(OpenContext openContext) 3 months ago
flink-quickstart
flink-rpc [FLINK-33532][rpc] Support configured akka remote dispatcher thread pool size 2 weeks ago
flink-runtime [FLINK-33364][core] Introduce standard YAML for flink configuration. 2 days ago
flink-runtime-web [FLINK-28050][connectors] Deprecate StreamExecutionEnvironment#fromElements() 5 days ago
flink-scala [FLINK-32918][release] Generate reference data for state migration tests based on release-1.18.0 2 weeks ago
flink-state-backends [FLINK-5865][state] Unwrapping exceptions and throw the original ones in state interfaces (#23371) 4 weeks ago
flink-streaming-java [FLINK-33581][core] Deprecate getter/setter methods related to state backend in the StreamExecutionEnvironment. 4 days ago
flink-streaming-scala [FLINK-28050][connectors] Deprecate StreamExecutionEnvironment#fromElements() 5 days ago
flink-table [FLINK-33422] Remove Calc JsonPlan and JsonIT tests 2 days ago
flink-test-utils-parent [FLINK-33364][core] Introduce standard YAML for flink configuration. 2 days ago
flink-tests [FLINK-6755] Support manual checkpoints triggering from CLI 3 days ago
flink-tests-java17 [FLINK-33543][core] Moves Java 17-specific test classes into their own module to make it easier unload these classes in the IDE. 2 weeks ago
flink-walkthroughs
flink-yarn [FLINK-32775][yarn] Add parent dir of files to classpath using yarn.provided.lib.dirs 3 months ago
flink-yarn-tests [FLINK-32978][flink-core] Migrate the usage of RichFunction#open(Configuration parameters) to RichFunction#open(OpenContext openContext) 3 months ago
licenses
tools [FLINK-33664][ci] Setup cron build for java 21 4 days ago
.asf.yaml
.editorconfig
.git-blame-ignore-revs
.gitignore
.gitmodules
.scalafmt.conf
LICENSE
NOTICE
README.md [hotfix][doc] remove hive connector repo link because it is still WIP 6 days ago
azure-pipelines.yml [FLINK-33501][ci] Makes use of Maven wrapper 4 days ago
mvnw [FLINK-33503][build] Upgrading Maven wrapper from 3.1.0 to 3.2.0 1 week ago
mvnw.cmd [FLINK-33503][build] Upgrading Maven wrapper from 3.1.0 to 3.2.0 1 week ago
pom.xml [FLINK-28050][connectors] Deprecate StreamExecutionEnvironment#fromElements() 5 days 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")
  .window(TumblingProcessingTimeWindow.of(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 require version 3.8.6)
  • Java 8 or 11 (Java 9 or 10 may work)
git clone https://github.com/apache/flink.git
cd flink
./mvnw clean package -DskipTests # this will take up to 10 minutes

Flink is now installed in build-target.

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 find 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.

Externalized Connectors

Most Flink connectors have been externalized to individual repos under the Apache Software Foundation:

About

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