Apache Storm Topology used by cenote for data writing
- The
kafka-spout
Spout is connected to a kafka topic calledcenoteIncoming
. - Everytime it consumes a message, it passes it down to
forwardToCassandra
Bolt. - This bolt (which is written in Python) connects to a cassandra keyspace called
cenote
, and handles the data writing accoring to cenote's specs.
- Clone the repository:
$ git clone --recurse-submodules -j8 https://github.com/AuthEceSoftEng/cenote-write.git
- Install the requirements of
cenote-cockroach
:
$ cd python-src/resources/CockroachHandler
$ pip3 install -r requirements.txt
-
Set up the required
.env
files according to the provided samples in:root
directory of the repopython-src/resources/CockroachHandler
directory
-
Compile the source code:
$ mvn clean install package
- Submit the topology to the cluster:
$ storm jar path/to/write-0.1.0-jar-with-dependencies.jar com.issel.cenote.WriteTopology WriteTopology