Re: Is there a way in increase number of partitions

2017-08-20 Thread Zafar Ansari
Hi You can specify a partition function while producing a message to Kafka brokers. This function will determine which partition the message should be sent to. See https://edgent.apache.org/javadoc/r1.1.0/org/apache/edgent/connectors/kafka/KafkaProducer.html#publish-org.apache.edgent.topology.TStre

Re: Why does kafka-consumer-groups show the topics written to too in its describe

2017-08-20 Thread Sachin Mittal
Folks any thoughts on this. Basically I want to know on what topics does consumer group command reports on. I always thought it would only be the topics streams application consumes from and not write to. Any inputs or any part of code I can look at to understand this better would be helpful. Th

Is there a way in increase number of partitions

2017-08-20 Thread Sachin Mittal
Hi, I have a topic which has four partitions and data is distributed among those based on a specified key. If I want to increase the number of partitions to six how can I do the same and also making sure that messages for a given key always go to one (specific) partition only. Will the existing m

Re: Kafka rack-id and min in-sync replicas

2017-08-20 Thread Svante Karlsson
I think you are right, The rack awareness is used to spread the partitions on creation, assignment -etc so get as many racks as your replication count. /svante 2017-08-20 13:33 GMT+02:00 Carl Samuelson : > Hi > > I asked this question on SO here: > https://stackoverflow.com/questions/45778455/k

Kafka rack-id and min in-sync replicas

2017-08-20 Thread Carl Samuelson
Hi I asked this question on SO here: https://stackoverflow.com/questions/45778455/kafka-rack-id-and-min-in-sync-replicas. Basically, I am trying to understand how rack-id helps in DR situations. Kafka has introduced rack-id to provide redundancy capabilities if a whole rack fails. There is a min

Kafka cluster startup synchronization and monitoring

2017-08-20 Thread joshi.me...@gmail.com
I have the following configuration in Kafka cluster : 3 server where 3 brokers each are running (in all 9 brokers). Each server has 1 instance of Zookeeper running. When Kafka cluster is coming up, I don't want any producers and consumers to connect to any brokers until the cluster is fully up

ZooKeeper issues with 3.4.9 0 Please Help

2017-08-20 Thread Raghav
Hi I am trying to use the zookeeper 3.4.9 build (and jars) from apache zookeeper's site with Kafka 10.2.1. I want to run a 3 node zk cluster eventually, but to begin with I have only one node. I created my zoo.cfg as follows: tickTime=2000 dataDir=/var/lib/zookeeper/ clientPort=2181 initLimit=5 s