<?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: &amp;quot;Failed to login&amp;quot; error with Yarn App Timeline Server in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-Failed-to-login-quot-error-with-Yarn-App-Timeline/m-p/123251#M39048</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11108/kabalax.html" nodeid="11108"&gt;@Teddy Brewski&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Can you please re-import the keytab file and try kinit on the new keytab ? Below is the command to fetch the keytab. &lt;/P&gt;&lt;PRE&gt;kadmin.local -q "xst -k  ~/yarn.service.keytab yarn/hdp-nn01.local.net@HADOOP.LOCAL"
&lt;/PRE&gt;</description>
    <pubDate>Mon, 29 Aug 2016 18:41:04 GMT</pubDate>
    <dc:creator>sgowda</dc:creator>
    <dc:date>2016-08-29T18:41:04Z</dc:date>
    <item>
      <title>"Failed to login" error with Yarn App Timeline Server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-Failed-to-login-quot-error-with-Yarn-App-Timeline/m-p/123246#M39043</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I'm having problems starting Yarn App Timeline Server (HDP-2.4.0.0-169 kerberized cluster with Ambari 2.2.2.0). &lt;/P&gt;&lt;P&gt;Everything was working fine for several months until we had to reallocate servers to a different data center therefore the cluster had to be shut down.
I'm able to start Active and Standby ResourceManagers (along with all NodeManagers), but App Timeline Server fails with the following in the logs:&lt;/P&gt;&lt;PRE&gt;2016-08-28 18:21:51,903 FATAL applicationhistoryservice.ApplicationHistoryServer (ApplicationHistoryServer.java:launchAppHistoryServer(171)) - Error starting ApplicationHistoryServer
org.apache.hadoop.yarn.exceptions.YarnRuntimeException: Failed to login
        at org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer.serviceStart(ApplicationHistoryServer.java:112)
        at org.apache.hadoop.service.AbstractService.start(AbstractService.java:193)
        at org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer.launchAppHistoryServer(ApplicationHistoryServer.java:169)
        at org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer.main(ApplicationHistoryServer.java:178)
Caused by: java.io.IOException: Login failure for yarn/hdp-nn01.local.net@HADOOP.LOCAL from keytab /etc/security/keytabs/yarn.service.keytab: javax.security.auth.login.LoginException: Checksum failed
        at org.apache.hadoop.security.UserGroupInformation.loginUserFromKeytab(UserGroupInformation.java:962)
        at org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:275)
        at org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer.doSecureLogin(ApplicationHistoryServer.java:335)
        at org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer.serviceStart(ApplicationHistoryServer.java:110)
        ... 3 more
Caused by: javax.security.auth.login.LoginException: Checksum failed
        at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:804)
        at com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:617)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at javax.security.auth.login.LoginContext.invoke(LoginContext.java:755)
        at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682)
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
        at javax.security.auth.login.LoginContext.login(LoginContext.java:587)
        at org.apache.hadoop.security.UserGroupInformation.loginUserFromKeytab(UserGroupInformation.java:953)
        ... 6 more
Caused by: KrbException: Checksum failed
        at sun.security.krb5.internal.crypto.Aes256CtsHmacSha1EType.decrypt(Aes256CtsHmacSha1EType.java:102)
        at sun.security.krb5.internal.crypto.Aes256CtsHmacSha1EType.decrypt(Aes256CtsHmacSha1EType.java:94)
        at sun.security.krb5.EncryptedData.decrypt(EncryptedData.java:175)
        at sun.security.krb5.KrbAsRep.decrypt(KrbAsRep.java:149)
        at sun.security.krb5.KrbAsRep.decryptUsingKeyTab(KrbAsRep.java:121)
        at sun.security.krb5.KrbAsReqBuilder.resolve(KrbAsReqBuilder.java:285)
        at sun.security.krb5.KrbAsReqBuilder.action(KrbAsReqBuilder.java:361)
        at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:776)
        ... 19 more
Caused by: java.security.GeneralSecurityException: Checksum failed
        at sun.security.krb5.internal.crypto.dk.AesDkCrypto.decryptCTS(AesDkCrypto.java:451)
        at sun.security.krb5.internal.crypto.dk.AesDkCrypto.decrypt(AesDkCrypto.java:272)
        at sun.security.krb5.internal.crypto.Aes256.decrypt(Aes256.java:76)
        at sun.security.krb5.internal.crypto.Aes256CtsHmacSha1EType.decrypt(Aes256CtsHmacSha1EType.java:100)
        ... 26 more
2016-08-28 18:21:51,904 INFO  util.ExitUtil (ExitUtil.java:terminate(124)) - Exiting with status -1
2016-08-28 18:21:51,906 INFO  applicationhistoryservice.ApplicationHistoryServer (LogAdapter.java:info(45)) - SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down ApplicationHistoryServer at hdp-nn01.local.net/192.168.12.73
************************************************************/ &lt;/PRE&gt;&lt;P&gt;yarn.service.keytab is present on hdp-nn01.local.net, and krb5.conf seem to be the intact.&lt;/P&gt;&lt;P&gt;Any assistance would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 15:25:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-Failed-to-login-quot-error-with-Yarn-App-Timeline/m-p/123246#M39043</guid>
      <dc:creator>kabalax</dc:creator>
      <dc:date>2016-08-29T15:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: "Failed to login" error with Yarn App Timeline Server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-Failed-to-login-quot-error-with-Yarn-App-Timeline/m-p/123247#M39044</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11108/kabalax.html" nodeid="11108"&gt;@Teddy Brewski&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you please try kinit with the yarn.service.keytab and see whether it is successful. You will be able to get the yarn service principal using below command&lt;/P&gt;&lt;PRE&gt;klist -kt /etc/security/keytabs/yarn.service.keytab 
&lt;/PRE&gt;&lt;P&gt;Take the principal name from the previous command and run&lt;/P&gt;&lt;PRE&gt;kinit -kt /etc/security/keytabs/yarn.service.keytab  ${yarn-service-principal-name}
&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Aug 2016 15:53:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-Failed-to-login-quot-error-with-Yarn-App-Timeline/m-p/123247#M39044</guid>
      <dc:creator>sgowda</dc:creator>
      <dc:date>2016-08-29T15:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: "Failed to login" error with Yarn App Timeline Server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-Failed-to-login-quot-error-with-Yarn-App-Timeline/m-p/123248#M39045</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/10616/sgowda.html"&gt;Santhosh B Gowda&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you Santhosh.  It seems that it expired?&lt;/P&gt;&lt;PRE&gt;$ klist -kt /etc/security/keytabs/yarn.service.keytab
Keytab name: FILE:/etc/security/keytabs/yarn.service.keytab
KVNO Timestamp           Principal
---- ------------------- ------------------------------------------------------
   1 04/27/2016 15:56:20 yarn/hdp-nn01.local.net@HADOOP.LOCAL
   1 04/27/2016 15:56:20 yarn/hdp-nn01.local.net@HADOOP.LOCAL
   1 04/27/2016 15:56:20 yarn/hdp-nn01.local.net@HADOOP.LOCAL
   1 04/27/2016 15:56:20 yarn/hdp-nn01.local.net@HADOOP.LOCAL
   1 04/27/2016 15:56:20 yarn/hdp-nn01.local.net@HADOOP.LOCAL
&lt;/PRE&gt;&lt;P&gt;Executing kinit -kt /etc/security/keytabs/yarn.service.keytab yarn/hdp-nn01.local.net@HADOOP.LOCAL gives me&lt;/P&gt;&lt;PRE&gt;kinit: Password incorrect while getting initial credentials&lt;/PRE&gt;&lt;P&gt;but I can't recall setting up the password.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 16:42:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-Failed-to-login-quot-error-with-Yarn-App-Timeline/m-p/123248#M39045</guid>
      <dc:creator>kabalax</dc:creator>
      <dc:date>2016-08-29T16:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: "Failed to login" error with Yarn App Timeline Server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-Failed-to-login-quot-error-with-Yarn-App-Timeline/m-p/123249#M39046</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11108/kabalax.html" nodeid="11108"&gt;@Teddy Brewski&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Looks like something is wrong with principal yarn/hdp-nn01.local.net@HADOOP.LOCAL. Can you please check whether the account exists in KDC or is it probably blocked ?. Run below command on the machine where your kdc server is running.&lt;/P&gt;&lt;PRE&gt;kadmin.local -q "get_principal yarn/hdp-nn01.local.net@HADOOP.LOCAL"
&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Aug 2016 17:08:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-Failed-to-login-quot-error-with-Yarn-App-Timeline/m-p/123249#M39046</guid>
      <dc:creator>sgowda</dc:creator>
      <dc:date>2016-08-29T17:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: "Failed to login" error with Yarn App Timeline Server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-Failed-to-login-quot-error-with-Yarn-App-Timeline/m-p/123250#M39047</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/10616/sgowda.html"&gt;Santhosh B Gowda&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Seems to be there:&lt;/P&gt;&lt;PRE&gt;Authenticating as principal root/admin@HADOOP.LOCAL with password.
Principal: yarn/hdp-nn01.local.net@HADOOP.LOCAL
Expiration date: [never]
Last password change: Fri Jul 08 14:12:54 CEST 2016
Password expiration date: [none]
Maximum ticket life: 1 day 00:00:00
Maximum renewable life: 0 days 00:00:00
Last modified: Fri Jul 08 14:12:54 CEST 2016 (hdp-svc/admin@HADOOP.LOCAL)
Last successful authentication: [never]
Last failed authentication: [never]
Failed password attempts: 0
Number of keys: 4
Key: vno 2, aes256-cts-hmac-sha1-96
Key: vno 2, aes128-cts-hmac-sha1-96
Key: vno 2, des3-cbc-sha1
Key: vno 2, arcfour-hmac
MKey: vno 1
Attributes:
Policy: [none]
&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Aug 2016 17:35:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-Failed-to-login-quot-error-with-Yarn-App-Timeline/m-p/123250#M39047</guid>
      <dc:creator>kabalax</dc:creator>
      <dc:date>2016-08-29T17:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: "Failed to login" error with Yarn App Timeline Server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-Failed-to-login-quot-error-with-Yarn-App-Timeline/m-p/123251#M39048</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11108/kabalax.html" nodeid="11108"&gt;@Teddy Brewski&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Can you please re-import the keytab file and try kinit on the new keytab ? Below is the command to fetch the keytab. &lt;/P&gt;&lt;PRE&gt;kadmin.local -q "xst -k  ~/yarn.service.keytab yarn/hdp-nn01.local.net@HADOOP.LOCAL"
&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Aug 2016 18:41:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-Failed-to-login-quot-error-with-Yarn-App-Timeline/m-p/123251#M39048</guid>
      <dc:creator>sgowda</dc:creator>
      <dc:date>2016-08-29T18:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: "Failed to login" error with Yarn App Timeline Server</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-Failed-to-login-quot-error-with-Yarn-App-Timeline/m-p/123252#M39049</link>
      <description>&lt;P&gt;Thank you very much &lt;A rel="user" href="https://community.cloudera.com/users/10616/sgowda.html" nodeid="10616"&gt;@Santhosh B Gowda&lt;/A&gt; -- that was it!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 22:32:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-Failed-to-login-quot-error-with-Yarn-App-Timeline/m-p/123252#M39049</guid>
      <dc:creator>kabalax</dc:creator>
      <dc:date>2016-08-29T22:32:13Z</dc:date>
    </item>
  </channel>
</rss>

