Return-Path: X-Original-To: apmail-incubator-kafka-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-kafka-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9BA8EC858 for ; Tue, 12 Jun 2012 00:04:42 +0000 (UTC) Received: (qmail 34418 invoked by uid 500); 12 Jun 2012 00:04:42 -0000 Delivered-To: apmail-incubator-kafka-dev-archive@incubator.apache.org Received: (qmail 34372 invoked by uid 500); 12 Jun 2012 00:04:42 -0000 Mailing-List: contact kafka-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: kafka-dev@incubator.apache.org Delivered-To: mailing list kafka-dev@incubator.apache.org Received: (qmail 34363 invoked by uid 99); 12 Jun 2012 00:04:42 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2012 00:04:42 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 58A54141BF8 for ; Tue, 12 Jun 2012 00:04:42 +0000 (UTC) Date: Tue, 12 Jun 2012 00:04:42 +0000 (UTC) From: "Neha Narkhede (JIRA)" To: kafka-dev@incubator.apache.org Message-ID: <813459923.4918.1339459482367.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1687519233.28283.1338585323360.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Updated] (KAFKA-360) Add ability to disable rebalancing in ZooKeeper consumer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KAFKA-360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Neha Narkhede updated KAFKA-360: -------------------------------- Issue Type: Sub-task (was: Bug) Parent: KAFKA-364 > Add ability to disable rebalancing in ZooKeeper consumer > -------------------------------------------------------- > > Key: KAFKA-360 > URL: https://issues.apache.org/jira/browse/KAFKA-360 > Project: Kafka > Issue Type: Sub-task > Components: core > Affects Versions: 0.8 > Reporter: Chris Riccomini > > There is a need for a ZooKeeper-based Kafka consumer that does not re-balance. This is needed because we may be handling partitioning outside of Kafka. For example, I may have a stateful process that is meant to consume only from Partition 7 of a given Kafka topic. When that process stops, I don't want another consumer to take over partition 7. > The benefits we get from using the ZooKeeper-based consumer (vs the Simple Consumer) without rebalancing is that offsets will still be handled by Kafka/ZK, as will failover when a partition's leader disappears/fails. > I think the way to do this is to add a consumer config parameter that disables a consumer group's rebalancing. That way, the first consumer in the group to connect (when the ZK node is created) can specify if rebalancing should be enabled for the consumer group. If rebalancing is disabled, the consumers should be forced to supply a list of partition IDs that they wish to read from. Perhaps this can be done during the createMessageStreams call? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira