--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent-platform@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/c942fa46-dc90-451c-b455-bb2236245f7c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Scott,first, setting the replication and retention values is a broker-side operation. It's not something "the producer does".Kafka KIP-4 [1] is an ongoing work -- where part of the functionality is already available today -- to have an official "admin API" for creating topics, setting replication factor, etc.In the meantime, an "unofficial" option you could use is described in my StackOverflow answer at [2]. If you need an up-to-date code example, take a look at [3], which is for Confluent 3.2 and Apache Kafka 0.10.2.0.Hope this helps!Michael
On Thu, Apr 6, 2017 at 1:18 AM, Scott Cranford <scottc...@gmail.com> wrote:
Hi,I am adding a new use case to our Kafka 0.10 cluster that needs different replication and retention values. Is there a way to programmatically set these properties with the Java producer on a per topic basis?Those two particular properties don't appear to be available: https://kafka.apache.org/documentation/#producerconfigsWonder how others have set these properties for dynamically created topics.Thanks!
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsubscribe@googlegroups.com.
To post to this group, send email to confluent-platform@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/c942fa46-dc90-451c-b455-bb2236245f7c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Michael G. NollProduct Manager | Confluent
Scott,first, setting the replication and retention values is a broker-side operation. It's not something "the producer does".Kafka KIP-4 [1] is an ongoing work -- where part of the functionality is already available today -- to have an official "admin API" for creating topics, setting replication factor, etc.In the meantime, an "unofficial" option you could use is described in my StackOverflow answer at [2]. If you need an up-to-date code example, take a look at [3], which is for Confluent 3.2 and Apache Kafka 0.10.2.0.Hope this helps!Michael
On Thu, Apr 6, 2017 at 1:18 AM, Scott Cranford <scottc...@gmail.com> wrote:
Hi,I am adding a new use case to our Kafka 0.10 cluster that needs different replication and retention values. Is there a way to programmatically set these properties with the Java producer on a per topic basis?Those two particular properties don't appear to be available: https://kafka.apache.org/documentation/#producerconfigsWonder how others have set these properties for dynamically created topics.Thanks!
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/c942fa46-dc90-451c-b455-bb2236245f7c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks for the info Michael. It seems KAFKA-3265 would add similar functionality and has a fix version of 0.11.
On Thursday, April 6, 2017 at 12:19:10 AM UTC-7, Michael Noll wrote:
Scott,first, setting the replication and retention values is a broker-side operation. It's not something "the producer does".Kafka KIP-4 [1] is an ongoing work -- where part of the functionality is already available today -- to have an official "admin API" for creating topics, setting replication factor, etc.In the meantime, an "unofficial" option you could use is described in my StackOverflow answer at [2]. If you need an up-to-date code example, take a look at [3], which is for Confluent 3.2 and Apache Kafka 0.10.2.0.Hope this helps!Michael
On Thu, Apr 6, 2017 at 1:18 AM, Scott Cranford <scottc...@gmail.com> wrote:
Hi,I am adding a new use case to our Kafka 0.10 cluster that needs different replication and retention values. Is there a way to programmatically set these properties with the Java producer on a per topic basis?Those two particular properties don't appear to be available: https://kafka.apache.org/documentation/#producerconfigsWonder how others have set these properties for dynamically created topics.Thanks!
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsubscribe@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/c942fa46-dc90-451c-b455-bb2236245f7c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Michael G. NollProduct Manager | Confluent
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent-platform@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/a930aa1f-4d29-4132-9db0-7a486ed48e2d%40googlegroups.com.