Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 45D552009F3 for ; Fri, 6 May 2016 01:26:17 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 44932160A05; Thu, 5 May 2016 23:26:17 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8C57F160A04 for ; Fri, 6 May 2016 01:26:16 +0200 (CEST) Received: (qmail 55828 invoked by uid 500); 5 May 2016 23:26:15 -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 55811 invoked by uid 99); 5 May 2016 23:26:15 -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; Thu, 05 May 2016 23:26:15 +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 EF7A8C2978 for ; Thu, 5 May 2016 23:26:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.88 X-Spam-Level: ** X-Spam-Status: No, score=2.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=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, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-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 Vf4Cextxke9M for ; Thu, 5 May 2016 23:26:13 +0000 (UTC) Received: from mail-yw0-f170.google.com (mail-yw0-f170.google.com [209.85.161.170]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 52B455F24A for ; Thu, 5 May 2016 23:26:12 +0000 (UTC) Received: by mail-yw0-f170.google.com with SMTP id o66so170884474ywc.3 for ; Thu, 05 May 2016 16:26:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=2DNVaYOFuu966YpDORxBe8LANMGvutSwXPfZeDVDW6U=; b=Yaw3pC5UeP6zpkQrvU48eeyK8RGhqzYc4Het+XA5DyJCZ/x8MzsyVA8qLEoGNeeR+C wehbQzDPo49BtOl5VtBqbvBr6qVAx/1F/P2xhXhJ0qquKuqHX9WX5JuSA0jZv4MEkri7 ot7p3wcFB8D92rtlmBwZmLn/uCxi5HKcN+UBvK4dLJoI+H79H226lO3SSqeP9jtAFo5k CI7ulTNWrw+n4lJ1kBbl6zwC1bOb3dT30wE9p5co2elz866snwcGmd2M6sVD4dHmEeqh SqzmiSKw+XgpBw+IiHpDb3EepZIzeAASUAX++yGJRjHcoOEFSoAQPJcX+7PBmIXPvXrQ 2u9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=2DNVaYOFuu966YpDORxBe8LANMGvutSwXPfZeDVDW6U=; b=KrSMo8y0iXBN86XEDDUBBQChzfM+rWQLdQeBNO4Fv29ZsjP1q2BYDB9q2Jf4g1OQ+P q9CG0r8H1ArrqyHoDnsj6XUA3POVVqGzJCcxhO4XM00ra/NF1vUifwnbk1nN5pKYihRK D4NzM0vlezxOwXDlGApRsLK3yfM+GhuCipJ/UqZUNBIGwO+L3hU4EDhroZFfeBwJDqgR 24afKGVA7ryAytuKC0+cLIyXcFB1rZKi/2Nd5hcr+/v0rs2iXYCOeV9uOvII6QqPJxXf g7tthmWr/4K8uwwVRbv0O3YuI4H9cfKKgSzqOtWgIQD6zn/Oauhf3EQkQqbW/ZSZUYoU pakA== X-Gm-Message-State: AOPr4FXqL1xS2+iCt0pb9B7cUI5bfOyhWeN4jFxh/yEakWb4gcugiAxPpx0mRVOfz7DNGAwQSpteqU6IXfXfYg== MIME-Version: 1.0 X-Received: by 10.159.35.50 with SMTP id 47mr11214433uae.118.1462490771453; Thu, 05 May 2016 16:26:11 -0700 (PDT) Received: by 10.176.2.4 with HTTP; Thu, 5 May 2016 16:26:11 -0700 (PDT) In-Reply-To: References: Date: Thu, 5 May 2016 16:26:11 -0700 Message-ID: Subject: Re: Reg: Kafka-Acls From: BigData dev To: dev@kafka.apache.org, brahmbhatt.parth@gmail.com Content-Type: multipart/alternative; boundary=001a113d15b4eb8408053220aaf2 archived-at: Thu, 05 May 2016 23:26:17 -0000 --001a113d15b4eb8408053220aaf2 Content-Type: text/plain; charset=UTF-8 Hi, Thanks for Info. It worked. Acls are correctly set, but when i run the producer is throwing error, even if acl's are correctlt set. bin/kafka-console-producer.sh --broker-list bdavm1222.svl.ibm.com:6667 --topic permissiontopic --producer.config producer.properties jj [2016-05-05 16:02:23,308] WARN Error while fetching metadata with correlation id 0 : {permissiontopic=TOPIC_AUTHORIZATION_FAILED} (org.apache.kafka.clients.NetworkClient) [2016-05-05 16:02:23,309] ERROR Error when sending message to topic permissiontopic with key: null, value: 2 bytes with error: Not authorized to access topics: [permissiontopic] (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback) ^C[2016-05-05 16:02:45,754] WARN TGT renewal thread has been interrupted and will exit. (org.apache.kafka.common.security.kerberos.Login) producer is throwing error Anythoughts on this. Regards, Bharat On Thu, May 5, 2016 at 4:19 PM, parth brahmbhatt wrote: > Acls will be written in zookeeper but you are using getAcl , what you need > is get /kafka-acl/Topic/permissiontopic > > Thanks > Parth > > On Thu, May 5, 2016 at 3:28 PM, BigData dev > wrote: > > > Hi, > > When I run the command > > /bin/kafka-acls.sh --topic permissiontopic --add --allow-host {host} > > --allow-principal User:dev --operation Write --authorizer-properties > > zookeeper.connect={host:port} > > > > I am getting output as acls are set. > > > > But when i check under zookeeper using below command, it is not showing > the > > acls which I have set for user dev. > > > > [zk: (CONNECTED) 13] getAcl /kafka-acl/Topic/permissiontopic > > 'world,'anyone > > : r > > 'sasl,'kafka > > : cdrwa > > > > Is my understanding correct kafka-acls will be written to zookeeper node. > > > > > > This is causing when i run producer, it is failing as topic authorization > > failed. > > > > If any one has used this, can you please provide the inputs > > > > Regards, > > Bharat > > > --001a113d15b4eb8408053220aaf2--