Step 3: Download and Build the Implementation Code - Amazon Kinesis Data Streams
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Step 3: Download and Build the Implementation Code

Skeleton code is provided for the Tutorial: Process Real-Time Stock Data Using KPL and KCL 1.x. It contains a stub implementation for both the stock trade stream ingestion (producer) and the processing of the data (consumer). The following procedure shows how to complete the implementations.

To download and build the implementation code
  1. Download the source code to your computer.

  2. Create a project in your favorite IDE with the source code, adhering to the provided directory structure.

  3. Add the following libraries to the project:

    • Amazon Kinesis Client Library (KCL)

    • Amazon SDK

    • Apache HttpCore

    • Apache HttpClient

    • Apache Commons Lang

    • Apache Commons Logging

    • Guava (Google Core Libraries For Java)

    • Jackson Annotations

    • Jackson Core

    • Jackson Databind

    • Jackson Dataformat: CBOR

    • Joda Time

  4. Depending on your IDE, the project might be built automatically. If not, build the project using the appropriate steps for your IDE.

If you complete these steps successfully, you are now ready to move to the next section, Step 4: Implement the Producer. If your build generates errors at any stage, investigate and fix them before proceeding.

Next Steps

Step 4: Implement the Producer