<?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 HTTP ERROR 403 GSSException: Failure unspecified at GSS-API level (Mechanism level: Invalid argument (400) - Cannot find key of appropriate type to decrypt AP REP - AES256 CTS mode with HMAC SHA1-96) in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/HTTP-ERROR-403-GSSException-Failure-unspecified-at-GSS-API/m-p/390537#M247291</link>
    <description>&lt;P&gt;Hey everyone, after enabling Kerberos resource manager can't run, this log after try run resource manager. please Advice&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;File "/usr/lib/ambari-agent/lib/resource_management/libraries/providers/hdfs_resource.py", line 295, in _run_command
    raise WebHDFSCallException(err_msg, result_dict)
resource_management.libraries.providers.hdfs_resource.WebHDFSCallException: Execution of 'curl -sS -L -w '%{http_code}' -X GET -d '' -H 'Content-Length: 0' --negotiate -u : 'http://master.hadoop.com:50070/webhdfs/v1/services/sync/yarn-ats?op=GETFILESTATUS'' returned status_code=403. 
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/&amp;gt;
&amp;lt;title&amp;gt;Error 403 GSSException: Failure unspecified at GSS-API level (Mechanism level: Invalid argument (400) - Cannot find key of appropriate type to decrypt AP REP - AES256 CTS mode with HMAC SHA1-96)&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;&amp;lt;h2&amp;gt;HTTP ERROR 403 GSSException: Failure unspecified at GSS-API level (Mechanism level: Invalid argument (400) - Cannot find key of appropriate type to decrypt AP REP - AES256 CTS mode with HMAC SHA1-96)&amp;lt;/h2&amp;gt;
&amp;lt;table&amp;gt;
&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;URI:&amp;lt;/th&amp;gt;&amp;lt;td&amp;gt;/webhdfs/v1/services/sync/yarn-ats&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;
&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;STATUS:&amp;lt;/th&amp;gt;&amp;lt;td&amp;gt;403&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;
&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;MESSAGE:&amp;lt;/th&amp;gt;&amp;lt;td&amp;gt;GSSException: Failure unspecified at GSS-API level (Mechanism level: Invalid argument (400) - Cannot find key of appropriate type to decrypt AP REP - AES256 CTS mode with HMAC SHA1-96)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;
&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;SERVLET:&amp;lt;/th&amp;gt;&amp;lt;td&amp;gt;com.sun.jersey.spi.container.servlet.ServletContainer-6f19ac19&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;
&amp;lt;/table&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; for additional informations&lt;BR /&gt;/etc/krb5.conf&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[libdefaults]
 # renew_lifetime = 7d
  forwardable = true
  default_realm = EXAMPLE.COM
  ticket_lifetime = 24h
  dns_lookup_realm = false
  dns_lookup_kdc = false
  default_ccache_name = /tmp/krb5cc_%{uid}
#  default_tgs_enctypes = aes256-cts
 # default_tkt_enctypes = aes256-cts
  #permitted_enctypes = aes256-cts
  #default_tgs_enctypes = aes des3-cbc-sha1 rc4 des-cbc-md5
  #default_tkt_enctypes = aes des3-cbc-sha1 rc4 des-cbc-md5
  default_tkt_enctypes = aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96
  default_tgs_enctypes = aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96
  permitted_enctypes = aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96
[domain_realm]
  example.com = EXAMPLE.COM

[logging]
  default = FILE:/var/log/krb5kdc.log
  admin_server = FILE:/var/log/kadmind.log
  kdc = FILE:/var/log/krb5kdc.log

[realms]
  EXAMPLE.COM = {
    master_kdc = master1.hadoop.com
    admin_server = master1.hadoop.com
    kdc = master1.hadoop.com
  }&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 18 Jul 2024 04:17:03 GMT</pubDate>
    <dc:creator>rizalt</dc:creator>
    <dc:date>2024-07-18T04:17:03Z</dc:date>
    <item>
      <title>HTTP ERROR 403 GSSException: Failure unspecified at GSS-API level (Mechanism level: Invalid argument (400) - Cannot find key of appropriate type to decrypt AP REP - AES256 CTS mode with HMAC SHA1-96)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HTTP-ERROR-403-GSSException-Failure-unspecified-at-GSS-API/m-p/390537#M247291</link>
      <description>&lt;P&gt;Hey everyone, after enabling Kerberos resource manager can't run, this log after try run resource manager. please Advice&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;File "/usr/lib/ambari-agent/lib/resource_management/libraries/providers/hdfs_resource.py", line 295, in _run_command
    raise WebHDFSCallException(err_msg, result_dict)
resource_management.libraries.providers.hdfs_resource.WebHDFSCallException: Execution of 'curl -sS -L -w '%{http_code}' -X GET -d '' -H 'Content-Length: 0' --negotiate -u : 'http://master.hadoop.com:50070/webhdfs/v1/services/sync/yarn-ats?op=GETFILESTATUS'' returned status_code=403. 
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/&amp;gt;
&amp;lt;title&amp;gt;Error 403 GSSException: Failure unspecified at GSS-API level (Mechanism level: Invalid argument (400) - Cannot find key of appropriate type to decrypt AP REP - AES256 CTS mode with HMAC SHA1-96)&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;&amp;lt;h2&amp;gt;HTTP ERROR 403 GSSException: Failure unspecified at GSS-API level (Mechanism level: Invalid argument (400) - Cannot find key of appropriate type to decrypt AP REP - AES256 CTS mode with HMAC SHA1-96)&amp;lt;/h2&amp;gt;
&amp;lt;table&amp;gt;
&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;URI:&amp;lt;/th&amp;gt;&amp;lt;td&amp;gt;/webhdfs/v1/services/sync/yarn-ats&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;
&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;STATUS:&amp;lt;/th&amp;gt;&amp;lt;td&amp;gt;403&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;
&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;MESSAGE:&amp;lt;/th&amp;gt;&amp;lt;td&amp;gt;GSSException: Failure unspecified at GSS-API level (Mechanism level: Invalid argument (400) - Cannot find key of appropriate type to decrypt AP REP - AES256 CTS mode with HMAC SHA1-96)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;
&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;SERVLET:&amp;lt;/th&amp;gt;&amp;lt;td&amp;gt;com.sun.jersey.spi.container.servlet.ServletContainer-6f19ac19&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;
&amp;lt;/table&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; for additional informations&lt;BR /&gt;/etc/krb5.conf&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[libdefaults]
 # renew_lifetime = 7d
  forwardable = true
  default_realm = EXAMPLE.COM
  ticket_lifetime = 24h
  dns_lookup_realm = false
  dns_lookup_kdc = false
  default_ccache_name = /tmp/krb5cc_%{uid}
#  default_tgs_enctypes = aes256-cts
 # default_tkt_enctypes = aes256-cts
  #permitted_enctypes = aes256-cts
  #default_tgs_enctypes = aes des3-cbc-sha1 rc4 des-cbc-md5
  #default_tkt_enctypes = aes des3-cbc-sha1 rc4 des-cbc-md5
  default_tkt_enctypes = aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96
  default_tgs_enctypes = aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96
  permitted_enctypes = aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96
[domain_realm]
  example.com = EXAMPLE.COM

[logging]
  default = FILE:/var/log/krb5kdc.log
  admin_server = FILE:/var/log/kadmind.log
  kdc = FILE:/var/log/krb5kdc.log

[realms]
  EXAMPLE.COM = {
    master_kdc = master1.hadoop.com
    admin_server = master1.hadoop.com
    kdc = master1.hadoop.com
  }&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 18 Jul 2024 04:17:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HTTP-ERROR-403-GSSException-Failure-unspecified-at-GSS-API/m-p/390537#M247291</guid>
      <dc:creator>rizalt</dc:creator>
      <dc:date>2024-07-18T04:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP ERROR 403 GSSException: Failure unspecified at GSS-API level (Mechanism level: Invalid argument (400) - Cannot find key of appropriate type to decrypt AP REP - AES256 CTS mode with HMAC SHA1-96)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HTTP-ERROR-403-GSSException-Failure-unspecified-at-GSS-API/m-p/390632#M247316</link>
      <description>&lt;P&gt;You can check if the keytabs created for resource manager is equipped with AES256 encryption type or not.&lt;/P&gt;&lt;P&gt;Check your keytabs using below command after taking the kerberos ticket using kinit-&lt;/P&gt;&lt;PRE&gt;klist -e&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Jul 2024 14:35:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HTTP-ERROR-403-GSSException-Failure-unspecified-at-GSS-API/m-p/390632#M247316</guid>
      <dc:creator>shubham_sharma</dc:creator>
      <dc:date>2024-07-19T14:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP ERROR 403 GSSException: Failure unspecified at GSS-API level (Mechanism level: Invalid argument (400) - Cannot find key of appropriate type to decrypt AP REP - AES256 CTS mode with HMAC SHA1-96)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HTTP-ERROR-403-GSSException-Failure-unspecified-at-GSS-API/m-p/390746#M247325</link>
      <description>&lt;P&gt;Thanks&amp;nbsp; &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80101"&gt;@shubham_sharma&lt;/a&gt;&amp;nbsp;&amp;nbsp;for the reply, I checked keytabs please see below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@master:~# kinit rm/master.hadoop.com
Password for rm/master.hadoop.com@EXAMPLE.COM:
root@master:~# klist -e
Ticket cache: FILE:/tmp/krb5cc_0
Default principal: rm/master.hadoop.com@EXAMPLE.COM

Valid starting       Expires              Service principal
07/22/2024 00:32:44  07/22/2024 10:32:44  krbtgt/EXAMPLE.COM@EXAMPLE.COM
        renew until 07/23/2024 00:32:40, Etype (skey, tkt): aes256-cts-hmac-sha1-96, aes256-cts-hmac-sha1-96&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;still the error, please advices&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 00:40:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HTTP-ERROR-403-GSSException-Failure-unspecified-at-GSS-API/m-p/390746#M247325</guid>
      <dc:creator>rizalt</dc:creator>
      <dc:date>2024-07-22T00:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP ERROR 403 GSSException: Failure unspecified at GSS-API level (Mechanism level: Invalid argument (400) - Cannot find key of appropriate type to decrypt AP REP - AES256 CTS mode with HMAC SHA1-96)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HTTP-ERROR-403-GSSException-Failure-unspecified-at-GSS-API/m-p/390810#M247343</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109307"&gt;@rizalt&lt;/a&gt;&lt;/P&gt;&lt;P&gt;There can me mismatch between your AD account and krb5.conf for encryption types[1]. Kindly check with your AD admin.&amp;nbsp;&lt;/P&gt;&lt;P&gt;[1] &lt;A href="https://learn.microsoft.com/en-us/archive/blogs/openspecification/windows-configurations-for-kerberos-supported-encryption-type" target="_blank"&gt;https://learn.microsoft.com/en-us/archive/blogs/openspecification/windows-configurations-for-kerberos-supported-encryption-type&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 19:46:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HTTP-ERROR-403-GSSException-Failure-unspecified-at-GSS-API/m-p/390810#M247343</guid>
      <dc:creator>shubham_sharma</dc:creator>
      <dc:date>2024-07-22T19:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP ERROR 403 GSSException: Failure unspecified at GSS-API level (Mechanism level: Invalid argument (400) - Cannot find key of appropriate type to decrypt AP REP - AES256 CTS mode with HMAC SHA1-96)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HTTP-ERROR-403-GSSException-Failure-unspecified-at-GSS-API/m-p/390823#M247349</link>
      <description>&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80101"&gt;@shubham_sharma&lt;/a&gt;, I'm not using AD account just kerberos&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 01:03:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HTTP-ERROR-403-GSSException-Failure-unspecified-at-GSS-API/m-p/390823#M247349</guid>
      <dc:creator>rizalt</dc:creator>
      <dc:date>2024-07-23T01:03:02Z</dc:date>
    </item>
  </channel>
</rss>

