Connector Classes
The two connector classes that integrate Kinetica with Storm are:com.gpudb.storm
GPUdbSpout- A Storm Spout, which receives a data stream from a Kinetica database table monitorGPUdbBolt- A Storm Bolt, which receives a data stream from a Spout and writes it to Kinetica
Streaming Data from Kinetica into a Storm Spout
AGPUdbSpout needs to be instantiated with the Kinetica source connection
information and the name of the table from which data will be streamed:
Streaming Data from a Storm Bolt to Kinetica
AGPUdbBolt needs to be instantiated with the Kinetica target connection
information, the name of the collection & table to which data will be streamed,
and the size & time thresholds that should be used to trigger data flushes:
Connecting the Streaming Spout to the Streaming Bolt
To connect theGPUdbSpout to the GPUdbBolt, they need to be added to a
configured Storm topology and connected:
Examples
An example can be found in thecom.gpudb.storm package:
Test- Streaming data from Kinetica to Kinetica via Storm using a custom Spout & Bolt
Installation & Configuration
The example code provided in this project can be run in local mode, where the Storm environment is simulated, or on a live Storm cluster. In local mode, the example can be run on any server. In cluster mode, the example must be run on the head Storm node. Two JAR files are produced by this project:storm-connector-<ver>.jar- can only be run in cluster modestorm-connector-<ver>-jar-with-dependencies.jar- can be run in local or cluster mode