<?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: Unable to access Hadoop CLI after enabling Kerberos in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-access-Hadoop-CLI-after-enabling-Kerberos/m-p/305672#M222542</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/29618"&gt;@sace17&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems your problem is related to credential cache.&lt;/P&gt;&lt;P&gt;Per "&lt;A href="https://bugzilla.redhat.com/show_bug.cgi?id=1029110&amp;quot;," target="_blank" rel="noopener"&gt;https://bugzilla.redhat.com/show_bug.cgi?id=1029110",&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;If the keyring ccache is changed from UID to username like below, it is not possible to get ticket as non-root user.
 default_ccache_name = KEYRING:persistent:%{username}&lt;/PRE&gt;&lt;P&gt;We have a KB article talks about the problem -&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/board/article/ta-p/74262" target="_blank" rel="noopener"&gt;https://community.cloudera.com/t5/board/article/ta-p/74262&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Per KB article,&amp;nbsp;&lt;SPAN&gt;CDH/Hadoop components do not fully support the advanced Linux feature &lt;STRONG&gt;KEYRING&lt;/STRONG&gt;&amp;nbsp;to store Keberos credentials.&lt;BR /&gt;Remove any global profile setting for environment variable&amp;nbsp;&lt;STRONG&gt;KRB5CCNAME.&amp;nbsp;&lt;/STRONG&gt;If no type prefix is present, the &lt;STRONG&gt;FILE&lt;/STRONG&gt; type is assumed, which is supported by&amp;nbsp;CDH/Hadoop components.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please remove/comment the section in /etc/krb5.conf file of all cluster nodes and that should solve your problem.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ref community post on the same problem here - &lt;A href="https://community.cloudera.com/t5/Support-Questions/Kerberos-Cache-in-IPA-RedHat-IDM-KEYRING-SOLVED/td-p/108373" target="_blank" rel="noopener"&gt;https://community.cloudera.com/t5/Support-Questions/Kerberos-Cache-in-IPA-RedHat-IDM-KEYRING-SOLVED/td-p/108373&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additional Reference:&amp;nbsp;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;A href="https://web.mit.edu/kerberos/krb5-1.12/doc/basic/ccache_def.html" target="_blank" rel="noopener"&gt;https://web.mit.edu/kerberos/krb5-1.12/doc/basic/ccache_def.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Nov 2020 17:22:24 GMT</pubDate>
    <dc:creator>PabitraDas</dc:creator>
    <dc:date>2020-11-09T17:22:24Z</dc:date>
    <item>
      <title>Unable to access Hadoop CLI after enabling Kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-access-Hadoop-CLI-after-enabling-Kerberos/m-p/305291#M222382</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've followed the following tutorial&amp;nbsp;&lt;A href="https://docs.cloudera.com/documentation/enterprise/5-14-x/topics/cdh_sg_kerberos_prin_keytab_deploy.html#topic_3_4" target="_self"&gt;CDH Hadoop Kerberos,&lt;/A&gt;&amp;nbsp;NameNode and DataNode are able to start properly and I'm able to see all the DataNode listed on the WebUI (0.0.0.0:50070). But I'm unable to access the Hadoop CLI. I've followed this tutorial&amp;nbsp;&lt;A href="https://docs.cloudera.com/documentation/enterprise/5-14-x/topics/sg_kerberos_troubleshoot.html#legacy_java_issue" target="_self"&gt;Certain Java versions cannot read credentials cache&lt;/A&gt;, still I'm unable to use the Hadoop CLI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[root@local9 hduser]# hadoop fs -ls /
20/11/03 12:24:32 WARN security.UserGroupInformation: PriviledgedActionException as:root (auth:KERBEROS) cause:javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]
20/11/03 12:24:32 WARN ipc.Client: Exception encountered while connecting to the server : javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]
20/11/03 12:24:32 WARN security.UserGroupInformation: PriviledgedActionException as:root (auth:KERBEROS) cause:java.io.IOException: javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]
ls: Failed on local exception: java.io.IOException: javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]; Host Details : local host is: "local9/192.168.2.9"; destination host is: "local9":8020;
[root@local9 hduser]# klist
Ticket cache: KEYRING:persistent:0:krb_ccache_hVEAjWz
Default principal: hdfs/local9@FBSPL.COM

Valid starting       Expires              Service principal
11/03/2020 12:22:42  11/04/2020 12:22:42  krbtgt/FBSPL.COM@FBSPL.COM
        renew until 11/10/2020 12:22:12
[root@local9 hduser]# kinit -R
[root@local9 hduser]# klist
Ticket cache: KEYRING:persistent:0:krb_ccache_hVEAjWz
Default principal: hdfs/local9@FBSPL.COM

Valid starting       Expires              Service principal
11/03/2020 12:24:50  11/04/2020 12:24:50  krbtgt/FBSPL.COM@FBSPL.COM
        renew until 11/10/2020 12:22:12
[root@local9 hduser]# hadoop fs -ls /
20/11/03 12:25:04 WARN security.UserGroupInformation: PriviledgedActionException as:root (auth:KERBEROS) cause:javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]
20/11/03 12:25:04 WARN ipc.Client: Exception encountered while connecting to the server : javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]
20/11/03 12:25:04 WARN security.UserGroupInformation: PriviledgedActionException as:root (auth:KERBEROS) cause:java.io.IOException: javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]
ls: Failed on local exception: java.io.IOException: javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]; Host Details : local host is: "local9/192.168.2.9"; destination host is: "local9":8020;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any Help would be greatly appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 07:14:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-access-Hadoop-CLI-after-enabling-Kerberos/m-p/305291#M222382</guid>
      <dc:creator>sace17</dc:creator>
      <dc:date>2020-11-03T07:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to access Hadoop CLI after enabling Kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-access-Hadoop-CLI-after-enabling-Kerberos/m-p/305292#M222383</link>
      <description>&lt;P&gt;Hi, Please check the below cloudera article it seems to be the same issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Internal/Kerberos-Authentication-error-Fail-to-create-credential-63/ta-p/75251" target="_blank"&gt;https://community.cloudera.com/t5/Internal/Kerberos-Authentication-error-Fail-to-create-credential-63/ta-p/75251&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 07:26:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-access-Hadoop-CLI-after-enabling-Kerberos/m-p/305292#M222383</guid>
      <dc:creator>ChethanYM</dc:creator>
      <dc:date>2020-11-03T07:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to access Hadoop CLI after enabling Kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-access-Hadoop-CLI-after-enabling-Kerberos/m-p/305293#M222384</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/75213"&gt;@ChethanYM&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm unable to access the link that you shared.&lt;/P&gt;&lt;P&gt;I'm Getting a access denied to link, then it's opening a 404 page&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 13:53:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-access-Hadoop-CLI-after-enabling-Kerberos/m-p/305293#M222384</guid>
      <dc:creator>sace17</dc:creator>
      <dc:date>2020-11-03T13:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to access Hadoop CLI after enabling Kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-access-Hadoop-CLI-after-enabling-Kerberos/m-p/305315#M222390</link>
      <description>&lt;P&gt;&lt;SPAN&gt;This error occurs when you have AES256 encryption enabled and you recently upgraded Java. Upgrading Java will overwrite the JCE policy files which include support for AES256 encryption. can you simply re-install your JCE policy jars and give a try?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 13:57:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-access-Hadoop-CLI-after-enabling-Kerberos/m-p/305315#M222390</guid>
      <dc:creator>ChethanYM</dc:creator>
      <dc:date>2020-11-03T13:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to access Hadoop CLI after enabling Kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-access-Hadoop-CLI-after-enabling-Kerberos/m-p/305316#M222391</link>
      <description>&lt;P&gt;I didn't upgrade the java. Anyways I reinstalled the JCE jar but the issue remained the same. No luck.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 14:04:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-access-Hadoop-CLI-after-enabling-Kerberos/m-p/305316#M222391</guid>
      <dc:creator>sace17</dc:creator>
      <dc:date>2020-11-03T14:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to access Hadoop CLI after enabling Kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-access-Hadoop-CLI-after-enabling-Kerberos/m-p/305533#M222478</link>
      <description>&lt;P&gt;Can you remove the following line 'default_ccache_name = KEYRING:persistent:%{uid}' from the krb5.conf and run the hdfs dfs command?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 14:08:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-access-Hadoop-CLI-after-enabling-Kerberos/m-p/305533#M222478</guid>
      <dc:creator>ChethanYM</dc:creator>
      <dc:date>2020-11-06T14:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to access Hadoop CLI after enabling Kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-access-Hadoop-CLI-after-enabling-Kerberos/m-p/305669#M222539</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;SPAN&gt;CDH does not support the keyring credential cache.&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cloudera.com/documentation/enterprise/latest/topics/cm_sg_s4_kerb_wizard.html#concept_irl_x5y_l4" target="_blank"&gt;https://docs.cloudera.com/documentation/enterprise/latest/topics/cm_sg_s4_kerb_wizard.html#concept_irl_x5y_l4&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 17:02:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-access-Hadoop-CLI-after-enabling-Kerberos/m-p/305669#M222539</guid>
      <dc:creator>David M.</dc:creator>
      <dc:date>2020-11-09T17:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to access Hadoop CLI after enabling Kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-access-Hadoop-CLI-after-enabling-Kerberos/m-p/305672#M222542</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/29618"&gt;@sace17&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems your problem is related to credential cache.&lt;/P&gt;&lt;P&gt;Per "&lt;A href="https://bugzilla.redhat.com/show_bug.cgi?id=1029110&amp;quot;," target="_blank" rel="noopener"&gt;https://bugzilla.redhat.com/show_bug.cgi?id=1029110",&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;If the keyring ccache is changed from UID to username like below, it is not possible to get ticket as non-root user.
 default_ccache_name = KEYRING:persistent:%{username}&lt;/PRE&gt;&lt;P&gt;We have a KB article talks about the problem -&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/board/article/ta-p/74262" target="_blank" rel="noopener"&gt;https://community.cloudera.com/t5/board/article/ta-p/74262&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Per KB article,&amp;nbsp;&lt;SPAN&gt;CDH/Hadoop components do not fully support the advanced Linux feature &lt;STRONG&gt;KEYRING&lt;/STRONG&gt;&amp;nbsp;to store Keberos credentials.&lt;BR /&gt;Remove any global profile setting for environment variable&amp;nbsp;&lt;STRONG&gt;KRB5CCNAME.&amp;nbsp;&lt;/STRONG&gt;If no type prefix is present, the &lt;STRONG&gt;FILE&lt;/STRONG&gt; type is assumed, which is supported by&amp;nbsp;CDH/Hadoop components.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please remove/comment the section in /etc/krb5.conf file of all cluster nodes and that should solve your problem.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ref community post on the same problem here - &lt;A href="https://community.cloudera.com/t5/Support-Questions/Kerberos-Cache-in-IPA-RedHat-IDM-KEYRING-SOLVED/td-p/108373" target="_blank" rel="noopener"&gt;https://community.cloudera.com/t5/Support-Questions/Kerberos-Cache-in-IPA-RedHat-IDM-KEYRING-SOLVED/td-p/108373&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additional Reference:&amp;nbsp;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;A href="https://web.mit.edu/kerberos/krb5-1.12/doc/basic/ccache_def.html" target="_blank" rel="noopener"&gt;https://web.mit.edu/kerberos/krb5-1.12/doc/basic/ccache_def.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 17:22:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-access-Hadoop-CLI-after-enabling-Kerberos/m-p/305672#M222542</guid>
      <dc:creator>PabitraDas</dc:creator>
      <dc:date>2020-11-09T17:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to access Hadoop CLI after enabling Kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-access-Hadoop-CLI-after-enabling-Kerberos/m-p/305704#M222548</link>
      <description>&lt;P&gt;Thanks, I'm able to access the Hadoop CLI after commenting out the line.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 06:20:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-access-Hadoop-CLI-after-enabling-Kerberos/m-p/305704#M222548</guid>
      <dc:creator>sace17</dc:creator>
      <dc:date>2020-11-10T06:20:18Z</dc:date>
    </item>
  </channel>
</rss>

