How to create kafka topic via CLI

preview_player
Показать описание
#learnkafka #kafkainwindow #howtosetup #apachekafka #stepbystep #java
create topics using Command Line Interface(CLI) on Windows

1: Initially, make sure that both zookeeper, as well as the Kafka server, should be started.


2: Type 'kafka-topics -zookeeper localhost:2181 -topic -create' on the console and press enter. Here, the name of the topic is 'myfirst'

kafka-topics -zookeeper localhost:2181 -topic provide_topic_name -create

"missing required argument partitions" it is necessary to declare the number of partitions and its ISR(replication factor), while creating a topic. If not declared, such type of errors will be thrown.




see all created topic


describe the topic


Рекомендации по теме
Комментарии
Автор

-- zookeeper i cannot list the topics. it says zookeeper not recognized.

HenryLeu