1.6 Check if Kafka is Running

This topic provides information about Kafka is Running.

  1. Run the cmd $ netstat –tlnp | grep :9092.

    Note:

    9092 is default port of kafka.

Possible issue while starting kafka

  1. Kafka is not starting may be because zookeeper is not yet started.
    1. Run the cmd $ netstat –tlnp | grep :2181.

      Note:

      2181 is default port of zookeeper.

      if any services is not running on this port means, zookeeper is down.

  2. Check if any permission issue is there for kafka log folder.

    Note:

    To Create console producer and consumer for troubleshooting, refer to http://cloudurable.com/blog/kafka-tutorial-kafka-from-command-line/index.html.

    Note:

    Some references that can be useful https://docs.cloudera.com/documentation/kafka/latest/topics/kafka_faq.html