title: Kafka: Is it possible to create topic with specified replication factor by java client
body: <p>From the official document of Kafka, it said below from <a href="http://kafka.apache.org/documentation.html#replication" rel="nofollow">4.7 Replication</a></p>
  
  <blockquote>
    <p>you can set this replication factor on a topic-by-topic basis</p>
  </blockquote>
  
  <p>But from the <a href="http://kafka.apache.org/082/javadoc/index.html?org/apache/kafka/clients/producer/KafkaProducer.html" rel="nofollow">javadoc</a> of its java client, I can't find any API is relating to <code>createTopic</code> with replication factor. Is it only possible by the shell script it provided? </p>