组件堆栈

As a software stack, Flink is a layered system. The different layers of the stack build ontop of each other and raise the abstraction level of the program representations they accept:

  • The runtime layer receives a program in the form of a JobGraph. A JobGraph is a generic paralleldata flow with arbitrary tasks that consume and produce data streams.

  • Both the DataStream API and the DataSet API generate JobGraphs through separate compilationprocesses. The DataSet API uses an optimizer to determine the optimal plan for the program, whilethe DataStream API uses a stream builder.

  • The JobGraph is executed according to a variety of deployment options available in Flink (e.g., local,remote, YARN, etc)

  • Libraries and APIs that are bundled with Flink generate DataSet or DataStream API programs. These areTable for queries on logical tables, complex event processing, and Gelly for graph processing.

You can click on the components in the figure to learn more.

Apache Flink: Stack