what is kafka topic code example
Example 1: kafka create topic
$ bin/kafka-topics.sh --create --topic quickstart-events --bootstrap-server localhost:9092
Example 2: kafkacat topic info
kafkacat -b localhost:29092 -t "new_topic" -L
Example 3: kafka create topic
#Kafka docker create topic
create-topics.sh --zookeeper <hostname>:<port> \
--topic <topic-name> \
--partitions <number-of-partitions> \
--replication-factor <number-of-replicating-servers>