title: What is the command to list down all the available brokers in Apache Kafka?
body: <p>I want to run a multi node cluster in Apache Kafka.
  I have made three server.properties files - server, server1 and server2. I have also given then different broker ids and different port numbers. Still on running the script kafka-topics.sh with a replication factor if 3 ,it throws an error saying that the replication factor:3 is larger than the number of brokers:0</p>
  
  <p>I used this command :</p>
  
  <pre><code>bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 3 --partitions 1 --topic my-replica-topic
  </code></pre>
  
  <p>Error shown is </p>
  
  <blockquote>
    <p>Error while executing topic command replication factor: 3 larger than
    available brokers: 0 kafka.admin.AdminOperationException: replication
    factor: 3 larger than available brokers: 0    at
    kafka.admin.AdminUtils$.assignReplicasToBrokers(AdminUtils.scala:70)
      at kafka.admin.AdminUtils$.createTopic(AdminUtils.scala:171)    at
    kafka.admin.TopicCommand$.createTopic(TopicCommand.scala:93)  at
    kafka.admin.TopicCommand$.main(TopicCommand.scala:55)     at
    kafka.admin.TopicCommand.main(TopicCommand.scala)</p>
  </blockquote>
  
  <p>Could you let me know where I am going wrong ?</p>