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 implementation.
To download and build the implementation code
-
Download the source code
to your computer. -
Create a project in your favorite IDE with the source code, adhering to the provided directory structure.
-
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
-
-
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, Implement the producer. If your build generates errors at any stage, investigate and fix them before proceeding.