alibaba/flink

Name: flink

Owner: Alibaba

Description: Mirror of Apache Flink

Forked from: apache/flink

Created: 2016-08-11 02:17:59.0

Updated: 2018-05-14 10:59:44.0

Pushed: 2018-05-10 09:09:27.0

Homepage: null

Size: 148914

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Apache Flink

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

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

Features
Streaming Example
 class WordWithCount(word: String, count: Long)

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

windowCounts = text.flatMap { w => w.split("\\s") }
ap { w => WordWithCount(w, 1) }
eyBy("word")
imeWindow(Time.seconds(5))
um("count")

owCounts.print()
Batch Example
 class WordWithCount(word: String, count: Long)

text = env.readTextFile(path)

counts = text.flatMap { w => w.split("\\s") }
ap { w => WordWithCount(w, 1) }
roupBy("word")
um("count")

ts.writeAsCsv(outputPath)
Building Apache Flink from Source

Prerequisites for building Flink:

clone https://github.com/apache/flink.git
link
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.0.3 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.

Developing Flink

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:

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

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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.