https://digitalis.io/blog/apache-cassandra/getting-started-with-kafka-cassandra-connector
Follow this blog to learn about transfering messages from kafka topics to Cassandra. Checkout the code and follow the instructions to undersand how the DataStax Apache Kafka Connector (https://docs.datastax.com/en/kafka/doc/kafka/kafkaIntro.html) can be used to connect Kafka to Cassandra.