Creating, describing, altering & deleting kafka topic and listing all kafka topic

Kafka Topic Operations

Go to the Kafka bin folder before running any of the command
$ cd ~/kafka_2.11-1.1.0/bin

➠ Creating Kafka Topic
➠ Describing Kafka Topic
➠ All Topics: List down all the topics available in the kafka cluster.
./kafka-topics.sh --list --zookeeper localhost:2181  

Output:
kafka_test_topic
kafka_test_topic_withpartition


➠ Altering Kafka Topic: Change the current defined parameters/configuration for the topic.
➠ Deleting Kafka Topic: Dropping existing kafka topic from the Kafka server.
$ ./kafka-topics.sh --delete --zookeeper localhost:2181  --topic  kafka_test_topic

Output:
Topic kafka_test_topic is marked for deletion.
Note: This will have no impact if delete.topic.enable is not set to true.