Getting Started: Flink 1.6.2
This topic contains a version of the Getting Started (DataStream API) Tutorial that uses Apache Flink 1.6.2.
Topics
- Components of an Amazon Kinesis Data Analytics for Apache Flink
- Prerequisites for Completing the Exercises
- Step 1: Set Up an Amazon Account and Create an Administrator User
- Step 2: Set Up the Amazon Command Line Interface (Amazon CLI)
- Step 3: Create and Run a Kinesis Data Analytics application
- Step 4: Clean Up Amazon Resources
Components of an Amazon Kinesis Data Analytics for Apache Flink
To process data, your Kinesis Data Analytics application uses a Java/Apache Maven or Scala application that processes input and produces output using the Apache Flink runtime.
An Amazon Kinesis Data Analytics for Apache Flink has the following components:
-
Runtime properties: You can use runtime properties to configure your application without recompiling your application code.
-
Source: The application consumes data by using a source. A source connector reads data from a Kinesis data stream, an Amazon S3 bucket, etc. For more information, see Sources.
-
Operators: The application processes data by using one or more operators. An operator can transform, enrich, or aggregate data. For more information, see DataStream API Operators.
-
Sink: The application produces data to external sources by using sinks. A sink connector writes data to a Kinesis data stream, a Kinesis Data Firehose delivery stream, an Amazon S3 bucket, etc. For more information, see Sinks.
After you create, compile, and package your application, you upload the code package to an Amazon Simple Storage Service (Amazon S3) bucket. You then create a Kinesis Data Analytics application. You pass in the code package location, a Kinesis data stream as the streaming data source, and typically a streaming or file location that receives the application's processed data.
Prerequisites for Completing the Exercises
To complete the steps in this guide, you must have the following:
-
Java Development Kit
(JDK) version 8. Set the JAVA_HOME
environment variable to point to your JDK install location. -
We recommend that you use a development environment (such as Eclipse Java Neon
or IntelliJ Idea ) to develop and compile your application. -
Git Client.
Install the Git client if you haven't already. -
Apache Maven Compiler Plugin
. Maven must be in your working path. To test your Apache Maven installation, enter the following: $ mvn -version
To get started, go to Step 1: Set Up an Amazon Account and Create an Administrator User.