<?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 [ambari][kerberos]No valid credentials provided while performing HDFS tasks in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-kerberos-No-valid-credentials-provided-while/m-p/207361#M66262</link>
    <description>&lt;P&gt;I have a Kerberos enabled cluster with HDFS service installed on host1.&lt;/P&gt;&lt;P&gt;when i try to perform some operations on HDFS server, its failing with below error.&lt;/P&gt;&lt;PRE&gt;17/08/08 11:19:34 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)]
report: 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: "host1.example.com/172.26.110.122"; destination host is: "host1.example.com":8020;&lt;/PRE&gt;&lt;P&gt;I tried to execute klist &lt;/P&gt;&lt;P&gt;it shoes some certificates but seems expired.&lt;/P&gt;&lt;P&gt;Please help me on this error.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Aug 2017 18:26:40 GMT</pubDate>
    <dc:creator>akhilsnaik</dc:creator>
    <dc:date>2017-08-08T18:26:40Z</dc:date>
    <item>
      <title>[ambari][kerberos]No valid credentials provided while performing HDFS tasks</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-kerberos-No-valid-credentials-provided-while/m-p/207361#M66262</link>
      <description>&lt;P&gt;I have a Kerberos enabled cluster with HDFS service installed on host1.&lt;/P&gt;&lt;P&gt;when i try to perform some operations on HDFS server, its failing with below error.&lt;/P&gt;&lt;PRE&gt;17/08/08 11:19:34 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)]
report: 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: "host1.example.com/172.26.110.122"; destination host is: "host1.example.com":8020;&lt;/PRE&gt;&lt;P&gt;I tried to execute klist &lt;/P&gt;&lt;P&gt;it shoes some certificates but seems expired.&lt;/P&gt;&lt;P&gt;Please help me on this error.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 18:26:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-kerberos-No-valid-credentials-provided-while/m-p/207361#M66262</guid>
      <dc:creator>akhilsnaik</dc:creator>
      <dc:date>2017-08-08T18:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: [ambari][kerberos]No valid credentials provided while performing HDFS tasks</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-kerberos-No-valid-credentials-provided-while/m-p/207362#M66263</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18735/asnaik.html" nodeid="18735"&gt;@Akhil S Naik&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please do a  kinit with the hDFS keytab and see if it works:&lt;/P&gt;&lt;P&gt;Get Principal Name&lt;/P&gt;&lt;PRE&gt;# klist -kte /etc/security/keytabs/hdfs.headless.keytab 
Keytab name: FILE:/etc/security/keytabs/hdfs.headless.keytab
KVNO Timestamp  Principal
---- ------------------- ------------------------------------------------------
  9 06/15/2017 10:01:12 hdfs-kerberos_ambari@EXAMPLE.COM (des-cbc-md5) 
  9 06/15/2017 10:01:12 hdfs-kerberos_ambari@EXAMPLE.COM (des3-cbc-sha1) 
  9 06/15/2017 10:01:12 hdfs-kerberos_ambari@EXAMPLE.COM (arcfour-hmac) 
  9 06/15/2017 10:01:12 hdfs-kerberos_ambari@EXAMPLE.COM (aes256-cts-hmac-sha1-96) 
  9 06/15/2017 10:01:12 hdfs-kerberos_ambari@EXAMPLE.COM (aes128-cts-hmac-sha1-96) &lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;- Do a kinit&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;# kinit -kt /etc/security/keytabs/hdfs.headless.keytab  hdfs-kerberos_ambari@EXAMPLE.COM&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Check the ticket.&lt;/P&gt;&lt;PRE&gt;# klist
Ticket cache: FILE:/tmp/krb5cc_0
Default principal: hdfs-kerberos_ambari@EXAMPLE.COM

Valid starting  Expires  Service principal
08/08/2017 11:43:48  08/09/2017 11:43:48  krbtgt/EXAMPLE.COM@EXAMPLE.COM   &lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Then try again.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 18:44:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-kerberos-No-valid-credentials-provided-while/m-p/207362#M66263</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-08-08T18:44:46Z</dc:date>
    </item>
  </channel>
</rss>

