Docker or colima, sbt.
- Run docker or colima
colima start --cpu 4 --memory 8
- Run kafka, zookeeper, kafka-ui, cassandra via docker-compose
docker-compose up -d
-
Wait some time when all be prepared
-
Connect to cassandra
docker exec -it kafka-flink-cassandra-cassandra-1 cqlsh -u cassandra -p cassandra
- Create keyspace and table
CREATE KEYSPACE IF NOT EXISTS example WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'};
CREATE TABLE IF NOT EXISTS example.wordcount (word text,count bigint,PRIMARY KEY(word));
- Install deps and run project
sbt update && sbt run