kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tara...@mail.co.uk
Subject kafka-2.0.0-src/bin/kafka-topics.sh The shell file is empty;
Date Mon, 01 Oct 2018 11:10:32 GMT
Hi, For this version of kafka-2.0.0 the file topic is empty, so don't work also the first example

Step 3: Create A Topic

Let's create a topic named "test" with a single partition and only one replica:   

 		  > bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions
1 --topic test  

We can now see that topic if we run the list topic command:   

 		 1 2 
 		  > bin/kafka-topics.sh --list --zookeeper localhost:2181 test  

Alternatively, instead of manually creating topics you can also configure your brokers to
auto-create topics when a non-existent topic is published to. 

On the link: 



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message