title: How to get Replication Factor of Kafka Topic from Java code
body: <p>I have some topic name and i should to get info about it's replication factor from my Java application. I tried to do that with zookeeper library:</p>
  
  <pre><code>ZooKeeper zooKeeper = new ZooKeeper("localhost:22181", 10000, null);
  String s = new String(zooKeeper.getData("/brokers/topics/" + KafkaTopicConfig.TOPIC_NAME, false, null));
  </code></pre>
  
  <p>But it has now info about replication factor, only info about current replicas count.
  I tried to do that with kafka-client api:</p>
  
  <pre><code>TopicDescription topicDescriptionKafkaFuture = describeTopicsResult.values().get(KafkaTopicConfig.TOPIC_NAME).get();
  </code></pre>
  
  <p>But there is also no info about topic's replication factor. Is there anyway to get that info from Java Code?</p>