installation done from:
https://hevodata.com/blog/how-to-set-up-kafka-on-ubuntu-16-04/
testing installation:
sudo /opt/kafka/bin/kafka-server-start.sh /opt/kafka/config/server.properties
Create Topic in kafka:
/opt/kafka/bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test
List topics in kafka:
/opt/kafka/bin/kafka-topics.sh --list --zookeeper localhost:2181
publishing messages in kafka:
/opt/kafka/bin/kafka-console-producer.sh --broker-list localhost:9092 --topic test
helloword!
subscriber:(recieving it)
/opt/kafka/bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test --from-beginning
helloword!
sudo systemctl enable kafka.service
https://hevodata.com/blog/how-to-set-up-kafka-on-ubuntu-16-04/
testing installation:
sudo /opt/kafka/bin/kafka-server-start.sh /opt/kafka/config/server.properties
Create Topic in kafka:
/opt/kafka/bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test
List topics in kafka:
/opt/kafka/bin/kafka-topics.sh --list --zookeeper localhost:2181
publishing messages in kafka:
/opt/kafka/bin/kafka-console-producer.sh --broker-list localhost:9092 --topic test
helloword!
subscriber:(recieving it)
/opt/kafka/bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test --from-beginning
helloword!
sudo systemctl enable kafka.service