Kafka comprehensive Guide https://www.youtube.com/watch?v=JalUUBKdcA0
install kafaka
https://kafka.apache.org/downloads.html
Extarxt it to folder
sudo nano .bashrc
add kafka path there
export PATH=/home/programs/kafka_2.11-2.3.0/bin:$PATH
now can access kafka from anywhere in terminal
kafka-topics.sh
Inside kafka directory
/kafka_2.11-2.3.0
mkdir data
mkdir data/zookeeper
Set zookeeper directory in config
nano config/zookeeper.properties
dataDir=/home/xxxx/kafka/data/zookeeper
zookeeper-server-start.sh config/zookeeper.properties
mkdir data/kafka
nano config/server.properties
log.dirs=/home/xxxxxx/kafka_2.11-2.3.0/data/kafka
kafka-server-start.sh config/server.properties
kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test
kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test --from-beginning
https://www.youtube.com/watch?v=gdo_AMfncpU https://www.youtube.com/watch?v=NjHYWEV_E_o https://stackoverflow.com/questions/58492689/how-to-send-batched-data-with-spring-kafka-producer