Starting Zookeeper
C:\kafka_2.12-2.4\kafka_2.12-2.4.0\bin\windows>zookeeper-server-start C:\kafka_2.12-2.4\kafka_2.12-2.4.0\config\zookeeper.propertiesStarting Kafka server
C:\ Kafka\ kafka-server-start.bat C:\kafka_2.12-2.4\kafka_2.12-2.4.0\config\server.propertiesCreating topics
C:\Users\AnilBalwani>kafka-topics --zookeeper 127.0.0.1:2181 --topic test_topic --create --partitions 3 --replication-factor 1WARNING: Due to limitations in metric names, topics with a period ('.') or underscore ('_') could collide. To avoid issues it is best to use either, but not both.
Created topic test_topic.
C:\Users\AnilBalwani>
List topics
C:\Users\AnilBalwani>kafka-topics --zookeeper 127.0.0.1:2181 --listtest_topic
Kafka Information about topics
C:\Users\AnilBalwani>kafka-topics --zookeeper 127.0.0.1:2181 --topic test_topic --describeTopic: test_topic PartitionCount: 3 ReplicationFactor: 1 Configs:
Topic: test_topic Partition: 0 Leader: 0 Replicas: 0 Isr: 0
Topic: test_topic Partition: 1 Leader: 0 Replicas: 0 Isr: 0
Topic: test_topic Partition: 2 Leader: 0 Replicas: 0 Isr: 0
Comments
Post a Comment