java.io.IOException

java.lang.reflect.UndeclaredThrowableException

Solutions on the web9

  • via Cask Community Issue Tracker by Chris Gianelloni, 1 year ago
    java.lang.reflect.UndeclaredThrowableException
  • via Cask Community Issue Tracker by Chris Gianelloni, 1 year ago
    java.lang.reflect.UndeclaredThrowableException
  • via Apache's JIRA Issue Tracker by Yongzhi Chen, 1 year ago
    java.lang.reflect.UndeclaredThrowableException
  • Stack trace

    • java.io.IOException: java.lang.reflect.UndeclaredThrowableException at org.apache.hadoop.crypto.key.kms.KMSClientProvider.addDelegationTokens(KMSClientProvider.java:881)[hadoop-common-2.6.0-cdh5.5.2.jar:na] at org.apache.hadoop.crypto.key.KeyProviderDelegationTokenExtension.addDelegationTokens(KeyProviderDelegationTokenExtension.java:86)[hadoop-common-2.6.0-cdh5.5.2.jar:na] at org.apache.hadoop.hdfs.DistributedFileSystem.addDelegationTokens(DistributedFileSystem.java:2142)[hadoop-hdfs-2.6.0-cdh5.5.2.jar:na] at org.apache.hadoop.mapreduce.security.TokenCache.obtainTokensForNamenodesInternal(TokenCache.java:140)[hadoop-mapreduce-client-core-2.6.0-cdh5.5.2.jar:na] at org.apache.hadoop.mapreduce.security.TokenCache.obtainTokensForNamenodesInternal(TokenCache.java:100)[hadoop-mapreduce-client-core-2.6.0-cdh5.5.2.jar:na] at org.apache.hadoop.mapreduce.security.TokenCache.obtainTokensForNamenodes(TokenCache.java:80)[hadoop-mapreduce-client-core-2.6.0-cdh5.5.2.jar:na] at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:169)[hadoop-mapreduce-client-core-2.6.0-cdh5.5.2.jar:na] at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1307)[hadoop-mapreduce-client-core-2.6.0-cdh5.5.2.jar:na] at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1304)[hadoop-mapreduce-client-core-2.6.0-cdh5.5.2.jar:na] at java.security.AccessController.doPrivileged(Native Method)[na:1.7.0_67] at javax.security.auth.Subject.doAs(Subject.java:415)[na:1.7.0_67] at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1671)[hadoop-common-2.6.0-cdh5.5.2.jar:na] at org.apache.hadoop.mapreduce.Job.submit(Job.java:1304)[hadoop-mapreduce-client-core-2.6.0-cdh5.5.2.jar:na] at co.cask.cdap.internal.app.runtime.batch.MapReduceRuntimeService.startUp(MapReduceRuntimeService.java:291)[co.cask.cdap.cdap-app-fabric-3.3.1.jar:na] at com.google.common.util.concurrent.AbstractExecutionThreadService$1$1.run(AbstractExecutionThreadService.java:47)[com.google.guava.guava-13.0.1.jar:na] at co.cask.cdap.internal.app.runtime.batch.MapReduceRuntimeService$1$1.run(MapReduceRuntimeService.java:387)[co.cask.cdap.cdap-app-fabric-3.3.1.jar:na] at com.google.common.util.concurrent.AbstractExecutionThreadService$1$1.run(AbstractExecutionThreadService.java:47)[com.google.guava.guava-13.0.1.jar:na] at co.cask.cdap.internal.app.runtime.batch.MapReduceRuntimeService$1$1.run(MapReduceRuntimeService.java:387)[co.cask.cdap.cdap-app-fabric-3.3.1.jar:na] at java.lang.Thread.run(Thread.java:745)[na:1.7.0_67] Caused by: java.lang.reflect.UndeclaredThrowableException: null at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1684)[hadoop-common-2.6.0-cdh5.5.2.jar:na] at org.apache.hadoop.crypto.key.kms.KMSClientProvider.addDelegationTokens(KMSClientProvider.java:863)[hadoop-common-2.6.0-cdh5.5.2.jar:na] ... 16 more Caused by: org.apache.hadoop.security.authentication.client.AuthenticationException: GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt) at org.apache.hadoop.security.authentication.client.KerberosAuthenticator.doSpnegoSequence(KerberosAuthenticator.java:306)[hadoop-auth-2.6.0-cdh5.5.2.jar:na] at org.apache.hadoop.security.authentication.client.KerberosAuthenticator.authenticate(KerberosAuthenticator.java:196)[hadoop-auth-2.6.0-cdh5.5.2.jar:na] at org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator.authenticate(DelegationTokenAuthenticator.java:127)[hadoop-common-2.6.0-cdh5.5.2.jar:na] at org.apache.hadoop.security.authentication.client.AuthenticatedURL.openConnection(AuthenticatedURL.java:216)[hadoop-auth-2.6.0-cdh5.5.2.jar:na] at org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator.doDelegationTokenOperation(DelegationTokenAuthenticator.java:284)[hadoop-common-2.6.0-cdh5.5.2.jar:na] at org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator.getDelegationToken(DelegationTokenAuthenticator.java:165)[hadoop-common-2.6.0-cdh5.5.2.jar:na] at org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.getDelegationToken(DelegationTokenAuthenticatedURL.java:371)[hadoop-common-2.6.0-cdh5.5.2.jar:na] at org.apache.hadoop.crypto.key.kms.KMSClientProvider$2.run(KMSClientProvider.java:868)[hadoop-common-2.6.0-cdh5.5.2.jar:na] at org.apache.hadoop.crypto.key.kms.KMSClientProvider$2.run(KMSClientProvider.java:863)[hadoop-common-2.6.0-cdh5.5.2.jar:na] at java.security.AccessController.doPrivileged(Native Method)[na:1.7.0_67] at javax.security.auth.Subject.doAs(Subject.java:415)[na:1.7.0_67] at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1671)[hadoop-common-2.6.0-cdh5.5.2.jar:na] ... 17 more Caused by: org.ietf.jgss.GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt) at sun.security.jgss.krb5.Krb5InitCredential.getInstance(Krb5InitCredential.java:147)[na:1.7.0_67] at sun.security.jgss.krb5.Krb5MechFactory.getCredentialElement(Krb5MechFactory.java:121)[na:1.7.0_67] at sun.security.jgss.krb5.Krb5MechFactory.getMechanismContext(Krb5MechFactory.java:187)[na:1.7.0_67] at sun.security.jgss.GSSManagerImpl.getMechanismContext(GSSManagerImpl.java:223)[na:1.7.0_67] at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:212)[na:1.7.0_67] at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:179)[na:1.7.0_67] at org.apache.hadoop.security.authentication.client.KerberosAuthenticator$1.run(KerberosAuthenticator.java:285)[hadoop-auth-2.6.0-cdh5.5.2.jar:na] at org.apache.hadoop.security.authentication.client.KerberosAuthenticator$1.run(KerberosAuthenticator.java:261)[hadoop-auth-2.6.0-cdh5.5.2.jar:na] at java.security.AccessController.doPrivileged(Native Method)[na:1.7.0_67] at javax.security.auth.Subject.doAs(Subject.java:415)[na:1.7.0_67] at org.apache.hadoop.security.authentication.client.KerberosAuthenticator.doSpnegoSequence(KerberosAuthenticator.java:261)[hadoop-auth-2.6.0-cdh5.5.2.jar:na] ... 28 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago