Re: Use Zookeeper for a Producer

2016-06-01 Thread Igor Kravzov
Hi Alex, I use Kafka within Hortonworks HDP stack and din't find anything in Kafka configuration marking a broker as bootstrap. I also nothing for bootstrap configuration in API I use. Onlly Zookeeper(s) or broker(s). What do I loose if I use Zookeeper in producer configuration? On Tue, May 31,

Re: Use Zookeeper for a Producer

2016-05-31 Thread Alex Loddengaard
Hi Igor, a change in the number of brokers generally doesn't require configuration or code changes in producers and consumers. You will need to change bootstrap.servers if its original value no longer contains an active broker. Alex On Tue, May 31, 2016 at 12:44 PM, Igor Kravzov wrote: > What i

Re: Use Zookeeper for a Producer

2016-05-31 Thread Igor Kravzov
What if number of brokers change? Does it mean I need to change configuration or potentially recompile my producer and consumer? On Tue, May 31, 2016 at 3:27 PM, Alex Loddengaard wrote: > The "old" consumer used ZooKeeper. The "new" consumer, introduced in 0.9, > doesn't use ZooKeeper. The produ

Re: Use Zookeeper for a Producer

2016-05-31 Thread Alex Loddengaard
The "old" consumer used ZooKeeper. The "new" consumer, introduced in 0.9, doesn't use ZooKeeper. The producer doesn't use ZooKeeper, either. However, brokers still use ZooKeeper. Alex On Tue, May 31, 2016 at 12:03 PM, Igor Kravzov wrote: > When I look at code samples producers mostly write to b

Use Zookeeper for a Producer

2016-05-31 Thread Igor Kravzov
When I look at code samples producers mostly write to brokers and consumers use Zookeeper to consume from topics. Using Microsoft .net client ( https://github.com/Microsoft/CSharpClient-for-Kafka) I wrote producer witch uses Zookeeper and was able to write data successfully. Am I missing somethi