-
Install InsightEdge. Update the license file under $GS_HOME/gs-license.txt Modify the bin/set-gs-env.sh as required.
-
Install Kafka. Set the KAFKA_HOME environment variable.
-
Run bin/start-gs.sh script to start Gigaspaces
-
Run bin/start-kafka.sh
-
Run bin/deploy-gs.sh
-
Run bin/kafka-write-messages.sh to place data in Kafka topic.
-
Run com.gigaspaces.demo.kstreams.App Java program.
The Kafka StateStore example takes Kafka stream input in the form of a key: followed by text.
The key is used to uniquely identify a document stored in Gigaspaces. You can also think of it as a title of a document. With that we store a map that contains the words in the text and the counts.
For example: key:this is is a test
Creates the following data structure that gets stored to Gigaspaces. docId: key, map{ this=1, is=2, a=1, test=1, " "=4}