<?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: AccessControlException: Client cannot authenticate via:[TOKEN, KERBEROS] in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/AccessControlException-Client-cannot-authenticate-via-TOKEN/m-p/347409#M235152</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/98899"&gt;@stale&lt;/a&gt;&amp;nbsp; Issue seems to be with java, Can you check the jdk version , try exporting the latest jdk version&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jul 2022 12:36:37 GMT</pubDate>
    <dc:creator>Scharan</dc:creator>
    <dc:date>2022-07-12T12:36:37Z</dc:date>
    <item>
      <title>AccessControlException: Client cannot authenticate via:[TOKEN, KERBEROS]</title>
      <link>https://community.cloudera.com/t5/Support-Questions/AccessControlException-Client-cannot-authenticate-via-TOKEN/m-p/347406#M235150</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;after enabling Kerberos, I created a user in AD and on host machine which is part of a group of superusers in CM:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="unnamed.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34848i3BF9F94C2512A122/image-size/large?v=v2&amp;amp;px=999" role="button" title="unnamed.png" alt="unnamed.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;than I set permissions in Ranger like so:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image003.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34849i030C4112E0BDD0A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="image003.png" alt="image003.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and after doing &lt;STRONG&gt;kinit&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;hdfs dfs -ls /&lt;/STRONG&gt; I have an error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;WARN ipc.Client: Exception encountered while connecting to the server : org.apache.hadoop.security.AccessControlException: Client cannot authenticate via:[TOKEN, KERBEROS]

ls: DestHost:destPort FQDN:8020 , LocalHost:localPort FQDN/X.X.X.220:0. Failed on local exception: java.io.IOException: org.apache.hadoop.security.AccessControlException: Client cannot authenticate via:[TOKEN, KERBEROS]&lt;/LI-CODE&gt;&lt;P&gt;Could someone help please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 07:53:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/AccessControlException-Client-cannot-authenticate-via-TOKEN/m-p/347406#M235150</guid>
      <dc:creator>stale</dc:creator>
      <dc:date>2026-04-21T07:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: AccessControlException: Client cannot authenticate via:[TOKEN, KERBEROS]</title>
      <link>https://community.cloudera.com/t5/Support-Questions/AccessControlException-Client-cannot-authenticate-via-TOKEN/m-p/347409#M235152</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/98899"&gt;@stale&lt;/a&gt;&amp;nbsp; Issue seems to be with java, Can you check the jdk version , try exporting the latest jdk version&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 12:36:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/AccessControlException-Client-cannot-authenticate-via-TOKEN/m-p/347409#M235152</guid>
      <dc:creator>Scharan</dc:creator>
      <dc:date>2022-07-12T12:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: AccessControlException: Client cannot authenticate via:[TOKEN, KERBEROS]</title>
      <link>https://community.cloudera.com/t5/Support-Questions/AccessControlException-Client-cannot-authenticate-via-TOKEN/m-p/347411#M235154</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35149"&gt;@Scharan&lt;/a&gt;&amp;nbsp;java version:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;java-11-openjdk-11.0.15.0.9-2.el8_4.x86_64&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Logs from debugging:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;hdfs dfs -ls
                [UnixLoginModule]: succeeded importing info:
                        uid = 1012
                        gid = 491
                        supp gid = 491

Debug is  true storeKey false useTicketCache true useKeyTab false doNotPrompt true ticketCache is null isInitiator true KeyTab is null refreshKrb5Config is true principal is null tryFirstPass is false useFirstPass is false storePass is false clearPass is false

Refreshing Kerberos configuration
Acquire TGT from Cache
Principal is null
null credentials from Ticket Cache

                [Krb5LoginModule] authentication failed
Unable to obtain Principal Name for authentication

                [UnixLoginModule]: added UnixPrincipal,
                                UnixNumericUserPrincipal,
                                UnixNumericGroupPrincipal(s),
                         to Subject&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But &lt;STRONG&gt;klist&lt;/STRONG&gt; output shows principal:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;klist

Ticket cache: KCM:1012
Default principal: hdfssu@DOMAIN.COM
 
Valid starting       Expires              Service principal
07/12/2022 13:20:29  07/12/2022 23:20:29  krbtgt/DOMAIN.COM@DOMAIN.COM
        renew until 07/19/2022 13:20:29&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 13:39:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/AccessControlException-Client-cannot-authenticate-via-TOKEN/m-p/347411#M235154</guid>
      <dc:creator>stale</dc:creator>
      <dc:date>2022-07-12T13:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: AccessControlException: Client cannot authenticate via:[TOKEN, KERBEROS]</title>
      <link>https://community.cloudera.com/t5/Support-Questions/AccessControlException-Client-cannot-authenticate-via-TOKEN/m-p/347446#M235173</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/98899"&gt;@stale&lt;/a&gt;&amp;nbsp;Can try running the below commands and share the output of debug logs&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# export HADOOP_OPTS="-Dsun.security.krb5.debug=true"
# hdfs dfs -ls / &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 04:30:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/AccessControlException-Client-cannot-authenticate-via-TOKEN/m-p/347446#M235173</guid>
      <dc:creator>Scharan</dc:creator>
      <dc:date>2022-07-13T04:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: AccessControlException: Client cannot authenticate via:[TOKEN, KERBEROS]</title>
      <link>https://community.cloudera.com/t5/Support-Questions/AccessControlException-Client-cannot-authenticate-via-TOKEN/m-p/395895#M249059</link>
      <description>&lt;P&gt;This error occurs because of hdfs is not able to locate keytab to run the command with permission.&lt;/P&gt;&lt;P&gt;Note: In the hadoop/hdfs file system webui you will be able enter to the path and see its permission and you will be able to open each file system paths by clicking in the webUI.&lt;BR /&gt;if try to modify/delete it will give error with your webui login permission (write)&lt;/P&gt;&lt;P&gt;If you are using kerberos authentication. follow below steps to run hdfs commands in any namenode.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Copy the hdfs.keytab&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cd /run/cloudera-scm-agent/process&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ls -ltr to identify the latest dir for xxxxxxxxx-hdfs-NAMEBNODE&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cd&amp;nbsp;xxxxxxxxx-hdfs-NAMEBNODE&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cp hdfs.keytab /&amp;nbsp; (any dir)&lt;BR /&gt;&amp;nbsp; 2. Once copies run the kinit -kt command&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; kinit -kt /hdfs.keytab hdfs/masterserver.domain.com@DOMAIN.COM&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;klist&lt;BR /&gt;3. Run the hdfs command&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; hdfs dfs -ls /&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 11:24:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/AccessControlException-Client-cannot-authenticate-via-TOKEN/m-p/395895#M249059</guid>
      <dc:creator>Nagarajaiah</dc:creator>
      <dc:date>2024-10-24T11:24:40Z</dc:date>
    </item>
  </channel>
</rss>

