<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Kafka consumer problem on kerberos enabled cluster in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-consumer-problem-on-kerberos-enabled-cluster/m-p/140858#M39977</link>
    <description>&lt;P&gt;looks like issue is related to ZooKeeper permissions.  You can try by creating new consumer group.  we can use bin/zookeeper-shell.sh to verify the acl on znodes.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Sep 2016 21:35:25 GMT</pubDate>
    <dc:creator>mkumar2</dc:creator>
    <dc:date>2016-09-07T21:35:25Z</dc:date>
    <item>
      <title>Kafka consumer problem on kerberos enabled cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-consumer-problem-on-kerberos-enabled-cluster/m-p/140857#M39976</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;I have some problem in consuming from topic on a Kerberos enabled cluster. On the cluster is HDP-2.3.2 (with Kafka 0.8.2). &lt;/P&gt;&lt;P&gt;I can read the data from the topic but when my consumer tries to commit offsets I get the following exception. I tried to authorize my consumer but even the &lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.2/bk_secure-kafka-ambari/content/ch07s03.html"&gt;documentation&lt;/A&gt; isn't clear about it (first it says that you need READ and DESCRIBE permission but then gives READ and CREATE, on an other topic that mentions before).&lt;/P&gt;&lt;PRE&gt;2016-09-07 12:23:50 ERROR ZookeeperConsumerConnector:103 - [anp-testgroup_mybroker.host.com-1473243827746-c4749523], exception during autoCommit:
org.I0Itec.zkclient.exception.ZkException: org.apache.zookeeper.KeeperException$NoAuthException: KeeperErrorCode = NoAuth for /consumers/anp-testgroup/offsets/anp_test/0
        at org.I0Itec.zkclient.exception.ZkException.create(ZkException.java:68)
        at org.I0Itec.zkclient.ZkClient.retryUntilConnected(ZkClient.java:981)
        at org.I0Itec.zkclient.ZkClient.writeDataReturnStat(ZkClient.java:1121)
        at org.I0Itec.zkclient.ZkClient.writeData(ZkClient.java:1116)
        at org.I0Itec.zkclient.ZkClient.writeData(ZkClient.java:1085)
        at kafka.utils.ZkUtils$.updatePersistentPath(ZkUtils.scala:417)
        at kafka.consumer.ZookeeperConsumerConnector.commitOffsetToZooKeeper(ZookeeperConsumerConnector.scala:304)
        at kafka.consumer.ZookeeperConsumerConnector$$anonfun$5.apply(ZookeeperConsumerConnector.scala:338)
        at kafka.consumer.ZookeeperConsumerConnector$$anonfun$5.apply(ZookeeperConsumerConnector.scala:337)
        at scala.collection.immutable.Map$Map4.foreach(Map.scala:181)
        at kafka.consumer.ZookeeperConsumerConnector.commitOffsets(ZookeeperConsumerConnector.scala:337)
        at kafka.consumer.ZookeeperConsumerConnector.commitOffsets(ZookeeperConsumerConnector.scala:324)
        at kafka.consumer.ZookeeperConsumerConnector.autoCommit(ZookeeperConsumerConnector.scala:292)
        at kafka.consumer.ZookeeperConsumerConnector$$anonfun$1.apply$mcV$sp(ZookeeperConsumerConnector.scala:146)
        at kafka.utils.KafkaScheduler$$anonfun$1.apply$mcV$sp(KafkaScheduler.scala:108)
        at kafka.utils.CoreUtils$$anon$1.run(CoreUtils.scala:60)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.zookeeper.KeeperException$NoAuthException: KeeperErrorCode = NoAuth for /consumers/anp-testgroup/offsets/anp_test/0
        at org.apache.zookeeper.KeeperException.create(KeeperException.java:113)
        at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
        at org.apache.zookeeper.ZooKeeper.setData(ZooKeeper.java:1270)
        at org.I0Itec.zkclient.ZkConnection.writeDataReturnStat(ZkConnection.java:126)
        at org.I0Itec.zkclient.ZkClient$14.call(ZkClient.java:1125)
        at org.I0Itec.zkclient.ZkClient.retryUntilConnected(ZkClient.java:971)
        ... 21 more
&lt;/PRE&gt;&lt;P&gt;Any advice on what can cause the problem.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 19:02:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-consumer-problem-on-kerberos-enabled-cluster/m-p/140857#M39976</guid>
      <dc:creator>mattyy_007</dc:creator>
      <dc:date>2016-09-07T19:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka consumer problem on kerberos enabled cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-consumer-problem-on-kerberos-enabled-cluster/m-p/140858#M39977</link>
      <description>&lt;P&gt;looks like issue is related to ZooKeeper permissions.  You can try by creating new consumer group.  we can use bin/zookeeper-shell.sh to verify the acl on znodes.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 21:35:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-consumer-problem-on-kerberos-enabled-cluster/m-p/140858#M39977</guid>
      <dc:creator>mkumar2</dc:creator>
      <dc:date>2016-09-07T21:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka consumer problem on kerberos enabled cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-consumer-problem-on-kerberos-enabled-cluster/m-p/140859#M39978</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/11090/mkumar.html" nodeid="11090"&gt;@mkumar&lt;/A&gt;. I verified the acl-s and just the kafka service had "cdrwa"  authorization anyone else just "r". I set it "cdrwa" to anyone and the problem disappeared. But it's weird that by using the kafka authorizer(kafka-acls.sh) you can't resolve this.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 15:28:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-consumer-problem-on-kerberos-enabled-cluster/m-p/140859#M39978</guid>
      <dc:creator>mattyy_007</dc:creator>
      <dc:date>2016-09-08T15:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka consumer problem on kerberos enabled cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-consumer-problem-on-kerberos-enabled-cluster/m-p/140860#M39979</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;kafka-acls.sh script is used to create the ACLs for kafka users. It's not used for  zookeeper acl. &lt;/P&gt;&lt;P&gt;As per design, Only broker users can modify the zookeeper nodes, Others can only read the zk nodes. This is to improve security around zookeeper.&lt;/P&gt;&lt;P&gt;You can also use new consumer API, which does not depend Zookeeper. It is available in HDP 2.5.&lt;/P&gt;&lt;P&gt;ps: you can upvote, If you are satisfied with my answer&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 16:06:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-consumer-problem-on-kerberos-enabled-cluster/m-p/140860#M39979</guid>
      <dc:creator>mkumar2</dc:creator>
      <dc:date>2016-09-08T16:06:58Z</dc:date>
    </item>
  </channel>
</rss>

