Amazon Kinesis Data Analytics
Developer Guide

Getting Started with Amazon Kinesis Data Analytics for Java Applications

This section introduces you to the fundamental concepts of Amazon Kinesis Data Analytics for Java Applications. It describes the available options for creating and testing your applications. It also provides instructions for installing the necessary tools to complete the tutorials in this guide and to create your first application.

Components of a Kinesis Data Analytics for Java Application

To process data, your Kinesis Data Analytics application uses a Java/Apache Maven application that processes input and produces output using the Apache Flink runtime.

A Kinesis Data Analytics for Java application 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 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 Java 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

    Note

    Kinesis Data Analytics for Java Applications only supports Java applications that are built with Apache Maven.

To get started, go to Step 1: Set Up an AWS Account and Create an Administrator User.