GitHub user vahidhashemian reopened a pull request: https://github.com/apache/kafka/pull/922
KAFKA-3176: Add partition/offset options to the new consumer With this pull request the new console consumer can be provided with optional --partition and --offset arguments so only messages from a particular partition and starting from a particular offset are consumed. The following rules are also implemented to avoid invalid combinations of arguments: - If --partition or --offset is provided --new-consumer has to be provided too. - If --partition is provided --topic has to be provided too. - If --offset is provided --partition has to be provided too. - --offset and --from-beginning cannot be used at the same time. This patch is co-authored with @rajinisivaram. You can merge this pull request into a Git repository by running: $ git pull https://github.com/vahidhashemian/kafka KAFKA-3176 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/922.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #922 ---- commit 5058e4f1c81ed8f47f021248490cf8d3ad1ecc3c Author: Vahid Hashemian <vahidhashem...@us.ibm.com> Date: 2016-02-16T13:24:38Z KAFKA-3176: Add partition/offset options to the new console consumer With this feature the new console consumer can be provided with optional --partition and --offset arguments so messages from a particular partition and starting from a particular offset are consumed. The following rules are also implemented to avoid invalid combinations of arguments: - If --partition and/or --offset are provided --new-consumer has to be provided too. - If --partition is provided --topic has to be provided too. - If --offset is provided --partition has to be provided too. - --offset and --from-beginning cannot be used at the same time. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---