<?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: zkCli cannot execute in a Kerberos cluster - zookeeper Client will go to  AUTH_FAILED state in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/zkCli-cannot-execute-in-a-Kerberos-cluster-zookeeper-Client/m-p/118245#M81028</link>
    <description>&lt;P&gt;This seems to have worked for me. 1) kinit 2) source the env 3) execute zkCli.sh.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 29 Oct 2018 17:37:06 GMT</pubDate>
    <dc:creator>rsg</dc:creator>
    <dc:date>2018-10-29T17:37:06Z</dc:date>
    <item>
      <title>zkCli cannot execute in a Kerberos cluster - zookeeper Client will go to  AUTH_FAILED state</title>
      <link>https://community.cloudera.com/t5/Support-Questions/zkCli-cannot-execute-in-a-Kerberos-cluster-zookeeper-Client/m-p/118240#M81023</link>
      <description>&lt;P&gt;As the zookeeper user, after a successful kinit, in a Kerberos enabled cluster,we still cannot invoke &lt;A href="http://zkCli.sh" target="_blank"&gt;zkCli.sh&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;The error  is:&lt;/P&gt;&lt;PRE&gt;2016-03-04 12:08:47,596 - ERROR 
[main-SendThread(localhost.localdomain:2181):ZooKeeperSaslClient@384] - 
An error: (java.security.PrivilegedActionException: 
javax.security.sasl.SaslException: GSS initiate failed [Caused by 
GSSException: No valid credentials provided (Mechanism level: Server not
 found in Kerberos database (7))]) occurred when evaluating Zookeeper 
Quorum Member's  received SASL token. Zookeeper Client will go to 
AUTH_FAILED state.
&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:07:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/zkCli-cannot-execute-in-a-Kerberos-cluster-zookeeper-Client/m-p/118240#M81023</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2022-09-16T10:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: zkCli cannot execute in a Kerberos cluster - zookeeper Client will go to  AUTH_FAILED state</title>
      <link>https://community.cloudera.com/t5/Support-Questions/zkCli-cannot-execute-in-a-Kerberos-cluster-zookeeper-Client/m-p/118241#M81024</link>
      <description>&lt;P&gt;Do this before trying zkCli.sh&lt;/P&gt;&lt;PRE&gt;export JVMFLAGS="-Djava.security.auth.login.config=/etc/zookeeper/conf/zookeeper_jaas.conf"&lt;/PRE&gt;&lt;P&gt;and make sure jaas.conf is set correctly.&lt;/P&gt;&lt;P&gt;Edit: Sorry, the file is called zookeeper_jaas.conf, I just fixed it.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 09:12:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/zkCli-cannot-execute-in-a-Kerberos-cluster-zookeeper-Client/m-p/118241#M81024</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-03-09T09:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: zkCli cannot execute in a Kerberos cluster - zookeeper Client will go to  AUTH_FAILED state</title>
      <link>https://community.cloudera.com/t5/Support-Questions/zkCli-cannot-execute-in-a-Kerberos-cluster-zookeeper-Client/m-p/118242#M81025</link>
      <description>&lt;P&gt;Thanks for directing me to the right path.
Here was the solution&lt;/P&gt;&lt;P&gt;Changed the zookeeper_client_jaas.conf AND zookeeper_client_jaas.conf.j2 template file instead which had useKeyTab=false

Change it to the following:
&lt;/P&gt;&lt;PRE&gt;# vi /etc/zookeeper/conf/zookeeper_client_jaas.conf

&lt;/PRE&gt;&lt;PRE&gt;# vi /etc/zookeeper/conf/zookeeper_client_jaas.conf.j2&lt;/PRE&gt;&lt;PRE&gt;
Client {

com.sun.security.auth.module.Krb5LoginModule required

useKeyTab=true

storeKey=true

useTicketCache=false

keyTab="/etc/security/keytabs/zk.service.keytab"

principal="zookeeper/&amp;lt;FQDN&amp;gt;@REALM";

};


&lt;/PRE&gt;&lt;P&gt;However when you restart Ambari, it changes the zookeeper_client_jaas.conf back to the problem, so you HAVE to change to /etc/zookeeper/conf/zookeeper_client_jaas.conf.j2 template file ALSO for Ambari to get correct values.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 11:54:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/zkCli-cannot-execute-in-a-Kerberos-cluster-zookeeper-Client/m-p/118242#M81025</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2016-03-09T11:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: zkCli cannot execute in a Kerberos cluster - zookeeper Client will go to  AUTH_FAILED state</title>
      <link>https://community.cloudera.com/t5/Support-Questions/zkCli-cannot-execute-in-a-Kerberos-cluster-zookeeper-Client/m-p/118243#M81026</link>
      <description>&lt;P&gt;Your solution indicates an unhealthy cluster, and/or erroneous kerberization. Normally, there is no need to touch these files, unless you are installing ZK manually, but you are talking about Ambari. There is also no need for any j2 files. In healthy cluster it's enough to set JVMFLAGS and invoke zkCli.sh. I tested the other day, before filing my answer.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Mar 2016 09:24:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/zkCli-cannot-execute-in-a-Kerberos-cluster-zookeeper-Client/m-p/118243#M81026</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-03-12T09:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: zkCli cannot execute in a Kerberos cluster - zookeeper Client will go to  AUTH_FAILED state</title>
      <link>https://community.cloudera.com/t5/Support-Questions/zkCli-cannot-execute-in-a-Kerberos-cluster-zookeeper-Client/m-p/118244#M81027</link>
      <description>&lt;P&gt;When using Ambari, I believe that in order to properly execute zkCli.sh, you need to first source the zookeeper-env.sh file.&lt;/P&gt;&lt;PRE&gt;source /etc/zookeeper/conf/zookeeper-env.sh;
/usr/hdp/current/zookeeper-client/bin/zkCli.sh ....&lt;/PRE&gt;&lt;P&gt;Modifying zookeeper_jaas.conf to use a service identity is not particularly appropriate for a user-executed task.  User executed tasks should be authenticated use the executing user's identity. However I am not an expert with ZooKeeper. &lt;/P&gt;</description>
      <pubDate>Sun, 13 Mar 2016 20:47:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/zkCli-cannot-execute-in-a-Kerberos-cluster-zookeeper-Client/m-p/118244#M81027</guid>
      <dc:creator>rlevas</dc:creator>
      <dc:date>2016-03-13T20:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: zkCli cannot execute in a Kerberos cluster - zookeeper Client will go to  AUTH_FAILED state</title>
      <link>https://community.cloudera.com/t5/Support-Questions/zkCli-cannot-execute-in-a-Kerberos-cluster-zookeeper-Client/m-p/118245#M81028</link>
      <description>&lt;P&gt;This seems to have worked for me. 1) kinit 2) source the env 3) execute zkCli.sh.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 17:37:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/zkCli-cannot-execute-in-a-Kerberos-cluster-zookeeper-Client/m-p/118245#M81028</guid>
      <dc:creator>rsg</dc:creator>
      <dc:date>2018-10-29T17:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: zkCli cannot execute in a Kerberos cluster - zookeeper Client will go to  AUTH_FAILED state</title>
      <link>https://community.cloudera.com/t5/Support-Questions/zkCli-cannot-execute-in-a-Kerberos-cluster-zookeeper-Client/m-p/118246#M81029</link>
      <description>&lt;P&gt;I was unable to start zookeeper-client . after running above steps I am able to log into zookeeper-client and I am able to get the details but while using set command I am facing error like below&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Authentication is not valid : /brokers/ids/1001&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 16:45:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/zkCli-cannot-execute-in-a-Kerberos-cluster-zookeeper-Client/m-p/118246#M81029</guid>
      <dc:creator>satish_p</dc:creator>
      <dc:date>2019-07-11T16:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: zkCli cannot execute in a Kerberos cluster - zookeeper Client will go to  AUTH_FAILED state</title>
      <link>https://community.cloudera.com/t5/Support-Questions/zkCli-cannot-execute-in-a-Kerberos-cluster-zookeeper-Client/m-p/118247#M81030</link>
      <description>&lt;P&gt;Hello Satish, this error is not related to the procedure you followed, you need to kinit as kafka's user.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 15:14:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/zkCli-cannot-execute-in-a-Kerberos-cluster-zookeeper-Client/m-p/118247#M81030</guid>
      <dc:creator>rsg</dc:creator>
      <dc:date>2019-08-08T15:14:45Z</dc:date>
    </item>
  </channel>
</rss>

