From dev-return-94810-archive-asf-public=cust-asf.ponee.io@kafka.apache.org Mon Jun 4 11:57:35 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 446C2180636 for ; Mon, 4 Jun 2018 11:57:35 +0200 (CEST) Received: (qmail 27524 invoked by uid 500); 4 Jun 2018 09:57:34 -0000 Mailing-List: contact dev-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kafka.apache.org Delivered-To: mailing list dev@kafka.apache.org Received: (qmail 27507 invoked by uid 99); 4 Jun 2018 09:57:33 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2018 09:57:33 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id D5AA6CCB98 for ; Mon, 4 Jun 2018 09:57:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.869 X-Spam-Level: * X-Spam-Status: No, score=1.869 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 8BaKcdp4Q7En for ; Mon, 4 Jun 2018 09:57:31 +0000 (UTC) Received: from mail-it0-f67.google.com (mail-it0-f67.google.com [209.85.214.67]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 185695F580 for ; Mon, 4 Jun 2018 09:57:31 +0000 (UTC) Received: by mail-it0-f67.google.com with SMTP id e20-v6so9448056itc.1 for ; Mon, 04 Jun 2018 02:57:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=ymsybiYCKXtDRPiyj7P7e1wvq/f4Oyogjil5PNbztL8=; b=Tixi5g5ZgPrG7WC38olQa7ikbrj/6o5FGBzhbNchdmz8s9D1XIO+HKHv+A0jFpNxgL 4+TRzG/xhbUBNO/ES7tEne3Vjzoj/Gr72fpZrPnH/uw7HSgCPktRUGBiarZ4geKXYaPf S8CdmQv/45u0kGQXsZA+TejFQPrmhwL/YEiW57OdU7cbXTzAaS4LWFFiTAcEG+geW0q3 4RFD92aJi8AgTSLbDi40qp3fk39ozzs1Cykkjn+cMCAC7qo2DWq2eZ0u+dVZGttatlul Tz8gI4vOO4enN1LP06GtANGq1pLuDbqPDWFV41VFam2raySdvoA0yOBKUpBplq4yaCA5 l5fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=ymsybiYCKXtDRPiyj7P7e1wvq/f4Oyogjil5PNbztL8=; b=mmf5wvzWKYXSABbPPxzcFuJMnY+82c1qDWtkx6mWvtDGEHhs03U9A9veiyrYLxYge4 vHXvbgCh6wkh1WC/AxrbHboQWPALE4c4dcD77zKfzjZp+OzeOh1XnS+7BFodrDTmQEUt YNq6QpsChJxsfVsUaRWQYtX18o2AY6tlECaXnyf3aESEH/o7KJyPQ4Jm4ChM8fJo3sem F3SD6rXupoaGlxewtGC4pYqvvYrkJ/31Jrs27Py3bqPA+BXXi9c3d0ItMzc0jhzxOmGG l+TBfzFqBL+RK/zuSzdKrrD5IIqjcpExwq/VsBM6S1k0wHw9oQEny/1Pd+TCdJXyoi8m 6NyQ== X-Gm-Message-State: APt69E39YP9ViL4cELO9Hr+oLTt3KO6sN3+gucCDBhFMQ1ePraWKkrFf 7J/zTpUBYHSjYY6FJccKQaX8SalRSiu9WfE52jWMzoXc X-Google-Smtp-Source: ADUXVKLSlloXhhULjF52gMAM5BDI9Oq0slY8bDCWKMzXHP3Ubh4syBOcHf2fZ4cyav+W9wEpDqASvkL4Pg5Tiyeq8Bc= X-Received: by 2002:a24:74ce:: with SMTP id o197-v6mr13450174itc.107.1528106249597; Mon, 04 Jun 2018 02:57:29 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:90d2:0:0:0:0:0 with HTTP; Mon, 4 Jun 2018 02:57:29 -0700 (PDT) In-Reply-To: References: From: Viktor Somogyi Date: Mon, 4 Jun 2018 11:57:29 +0200 Message-ID: Subject: Re: [DISCUSS] KIP-308: GetOffsetShell: new KafkaConsumer API, support for multiple topics, minimize the number of requests to server To: dev Content-Type: multipart/alternative; boundary="0000000000002fba82056dcdf6cf" --0000000000002fba82056dcdf6cf Content-Type: text/plain; charset="UTF-8" Hi Arseniy, A few comments from me collected in points: 1. Usually the commands use "bootstrap-server" as in singular and not the plural "bootstrap-servers", so I suggest to keep this functionality. Otherwise their behavior is still the same. 2. kafka-get-offsets.sh --bootstrap-servers vm:9092 --topics AAA,ZZZ --partitions 0,1 I think that we could try out one of the "--topics AAA:0-3,ZZZ:1" or "--topic-partitions AAA:0-3,ZZZ:1" or "--tp AAA:0-3,ZZZ:1" notations so that asking for specific topic-partitions (or intervals as in AAA) is more concise. Perhaps we could enable using your originally proposed and one of these. What do you think? Also I would be interested in what others think about this notation. I'd find it useful as we often refer to partitions as "topic-partition" and this might strengthen this kind of thinking. Viktor On Fri, Jun 1, 2018 at 11:32 PM, Arseniy Tashoyan wrote: > Hi, > > I have just created KIP that proposes enhancements to GetOffsetShell > command line tool. > KIP: > https://cwiki.apache.org/confluence/display/KAFKA/KIP- > 308%3A+GetOffsetShell%3A+new+KafkaConsumer+API%2C+support+ > for+multiple+topics%2C+minimize+the+number+of+requests+to+server > > PR: https://github.com/apache/kafka/pull/3051 > > Suggestions are welcome. > > Regards, > Arseniy > --0000000000002fba82056dcdf6cf--