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/3.8.0/kafka_2.13-3.8.0.tgz.
- Install Zookeeper first and then Kafka.
- zookeeper-3.8.0/apache-zookeeper-3.8.0-bin.tar.gz. As zookeeper is embedded in 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 any service is not running on this port means 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