The mixing is not possible for a single instance of a consumer. A consumer either subscribes to partitions and is part of a consumer group, or a consumer us not part of any consumer group when manual partitions assignment is used.
-Matthias On 7/13/17 1:57 PM, venkata sastry akella wrote: > Lets a consumer not part of a group , is assigning partitiions manually in > one consumer is going to effect the other consumers part of a consumer > group? > > On Thu, Jul 13, 2017 at 10:36 AM, Paolo Patierno <ppatie...@live.com> wrote: > >> Assigning partitions manually has no relation with consumer groups. I mean >> ... a consumer doesn't need to be part of a consumer group (so specifying >> group.id) for having a partition assigned manually. >> ________________________________ >> From: venkata sastry akella <akel...@gmail.com> >> Sent: Thursday, July 13, 2017 7:09:33 PM >> To: dev@kafka.apache.org >> Subject: Clarification on KafkaConsumer manual partition assignment >> >> KafkaConsumer API doc has the following statement. >> >> "Note that it isn't possible to mix manual partition assignment (i.e. using >> assign >> <https://kafka.apache.org/0100/javadoc/org/apache/kafka/clients/consumer/ >> KafkaConsumer.html#assign(java.util.Collection)>) >> with dynamic partition assignment through topic subscription (i.e. using >> subscribe >> <https://kafka.apache.org/0100/javadoc/org/apache/kafka/clients/consumer/ >> KafkaConsumer.html#subscribe(java.util.Collection)> >> )." >> >> Question: Does this statement applies to only one consumer group or >> multiple consumer groups ? >> Meaning, can one consumer group has manual assignment and other consumer >> group has automatic assignment ? OR if atleast one consumer group has >> manual assignment, then automatic assignment doesnt work for any other >> consumer group also ? >> >> Thanks for clarifying this. >> >
signature.asc
Description: OpenPGP digital signature