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
Jark Wu 391a753310 [FLINK-13543][table-planner-blink] Enable reuse forks for integration tests in blink planner
This closes #9326
6 years ago
.github [FLINK-12590][docs] Use HTTPS for all Flink links 6 years ago
docs [FLINK-12998][docs] Extend debugging_classloading documentation with plugins loading case 6 years ago
flink-annotations [FLINK-13350][table-api-java] Annotate useCatalog & useDatabase with experimental annotation 6 years ago
flink-clients [FLINK-13434][e2e] Change the test_resume_savepoint to use stop-with-savepoint. 6 years ago
flink-connectors [FLINK-13427][hive] HiveCatalog's createFunction fails when function name has upper-case characters 6 years ago
flink-container [FLINK-13308][python] Drop the classifier of the flink-python jar 6 years ago
flink-contrib Update version to 1.10-SNAPSHOT 6 years ago
flink-core [FLINK-13435] Remove ShuffleDescriptor.ReleaseType and make release semantics fixed per partition type 6 years ago
flink-dist [hotfix] [travis] Fix the python travis failure (#9286) 6 years ago
flink-docs Update version to 1.10-SNAPSHOT 6 years ago
flink-end-to-end-tests [FLINK-13436][e2e] Add TPC-H queries as E2E tests 6 years ago
flink-examples [FLINK-12590][docs] Use HTTPS for all Flink links 6 years ago
flink-filesystems [FLINK-13455][build] Move jdk.tools exclusions out of dependency management 6 years ago
flink-formats [FLINK-11727][formats] Fixed JSON format issues after serialization 6 years ago
flink-fs-tests [FLINK-13455][build] Move jdk.tools exclusions out of dependency management 6 years ago
flink-java [FLINK-13367] Recognize writeReplace in ClosureCleaner 6 years ago
flink-jepsen [FLINK-13345][tests] Dump jstack output for Flink JVMs 6 years ago
flink-libraries [FLINK-13094][state-processor-api] Add registered*TimeTimers methods to KeyedStateReaderFunction#Context for querying the registered timers for a given key 6 years ago
flink-mesos [FLINK-13408][runtime] Let StandaloneResourceManager start startup period upon granting leadership 6 years ago
flink-metrics [FLINK-13104][metrics][datadog] Log all failed requests 6 years ago
flink-ml-parent Update version to 1.10-SNAPSHOT 6 years ago
flink-optimizer Update version to 1.10-SNAPSHOT 6 years ago
flink-python [FLINK-12704][python] Enable the configuration of using blink planner. 6 years ago
flink-queryable-state Update version to 1.10-SNAPSHOT 6 years ago
flink-quickstart [FLINK-12590][docs] Use HTTPS for all Flink links 6 years ago
flink-runtime [FLINK-13421] Exclude releasing root slots from slot allocation 6 years ago
flink-runtime-web [FLINK-13387][WebUI] Fix log download for old UI 6 years ago
flink-scala Update version to 1.10-SNAPSHOT 6 years ago
flink-scala-shell [FLINK-13399][table] Create two separate table uber jars for old and blink planners 6 years ago
flink-shaded-curator Update version to 1.10-SNAPSHOT 6 years ago
flink-state-backends Update version to 1.10-SNAPSHOT 6 years ago
flink-streaming-java [FLINK-13491][datastream] correctly support endInput in AsyncWaitOperator 6 years ago
flink-streaming-scala Update version to 1.10-SNAPSHOT 6 years ago
flink-table [FLINK-13543][table-planner-blink] Enable reuse forks for integration tests in blink planner 6 years ago
flink-test-utils-parent [FLINK-13451][tests] Remove use of Unsafe.defineClass() from CommonTestUtils 6 years ago
flink-tests [FLINK-9900][tests] Fix unstable ZooKeeperHighAvailabilityITCase 6 years ago
flink-walkthroughs [FLINK-12747][docs] Getting Started - Table Api Walkthrough 6 years ago
flink-yarn [FLINK-13455][build] Move jdk.tools exclusions out of dependency management 6 years ago
flink-yarn-tests [FLINK-13455][build] Move jdk.tools exclusions out of dependency management 6 years ago
licenses [FLINK-12409][python] Adds from_elements in TableEnvironment 6 years ago
licenses-binary [FLINK-13316][legal] Update binary licensing 6 years ago
tools [FLINK-13273][sql-client] Allow switching planners in SQL Client 6 years ago
.editorconfig
.gitattributes
.gitignore [hotfix] Add directory link-python/apache_flink.egg-info to gitignore 6 years ago
.travis.yml address comment 6 years ago
LICENSE [FLINK-10987] Update source LICENSE & NOTICE files 6 years ago
NOTICE [FLINK-11901][build] Update NOTICE files with year 2019 6 years ago
NOTICE-binary [FLINK-13399][legal] Update NOTICE-binary for new table uber jars 6 years ago
README.md [FLINK-12590][docs] Use HTTPS for all Flink links 6 years ago
pom.xml [FLINK-13436][e2e] Add TPC-H queries as E2E tests 6 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)
  • git
  • Maven (we recommend version 3.2.5 and require at least 3.1.1)
  • Java 8 (Java 9 and 10 are not yet supported)
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.