2.4 Configurations
This topic describes about the various configurations for the kafka and integration services.
Setup Kafka
- Download Kafka from https://www.apache.org/dyn/closer.cgi?path=/kafka/2.7.0/kafka_2.12-2.7.0.tgz
- Download Zookeeper from https://www.apache.org/dyn/closer.lua/zookeeper/zookeeper-3.6.2/apache-zookeeper-3.6.2-bin.tar.gz
- Install Zookeeper first and then Kafka.
- Follow the steps mentioned here - https://kafka.apache.org/quickstart
Check if kafka is running
Run cmd $ netstat –tlnp | grep :9092
(9092 is default port of kafka)
Possible issue while starting kafka
- Kafka is not
starting may be because zookeeper is not yet started
Run cmd
$ netstat –tlnp | grep :2181
(2181 is default port of zookeeper)
If there are no services running on this port, then zookeeper is down. - Check if any permission issue is there for kafka log folder.
- Create console producer and consumer for
troubleshooting.
Refer the following link for the same. http://cloudurable.com/blog/kafka-tutorial-kafka-from-command-line/index.html
Parent topic: Troubleshooting Kafka