<?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: Sample MR job fails from edge node after encrypting user home folder in HDFS on kerberized clust in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sample-MR-job-fails-from-edge-node-after-encrypting-user/m-p/48636#M49278</link>
    <description>&lt;P&gt;You are right, I just tested it and there is no need for additional settings (other than having initialized the kerberos ticket).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From what I read on your first post, it seems the same job do run successfully for users which do not have their home folder in HDFS encrypted ? (for the same kerberos realm) ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that is the case, I would open a SR ticket in your shoe. It would be the quickest way for obtaining a feedback from Cloudera on the matter (if there is an incompatiblity or some particular settings for this particular use case).&lt;/P&gt;</description>
    <pubDate>Mon, 19 Dec 2016 13:40:38 GMT</pubDate>
    <dc:creator>mathieu.d</dc:creator>
    <dc:date>2016-12-19T13:40:38Z</dc:date>
    <item>
      <title>Sample MR job fails from edge node after encrypting user home folder in HDFS on kerberized cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sample-MR-job-fails-from-edge-node-after-encrypting-user/m-p/48617#M49275</link>
      <description>&lt;P&gt;I'm having issues validating my Kerberos + HDFS TDE setup on CDH 5.7.1.&amp;nbsp;I'm running sample MapReduce job (Pi number calculation)&amp;nbsp;that fails with Kerberos ticket error (claiming user has no valid credentials) when initiated from &lt;U&gt;edge node only&lt;/U&gt;,&amp;nbsp;&lt;U&gt;after&lt;/U&gt; encrypting (HDFS Transparent Data Encryption) user home folder (/user/sampleuser)&amp;nbsp;in HDFS on kerberized cluster. User executing job authenticated (via kinit)&amp;nbsp;as cluster local MIT KDC principal (sampleuser@LOCALMITKDCREALM.COMPANY.COM). Same user, with same Kerberos ticket, &amp;nbsp;can succesfully connect to Hive (via beeline) and run HiveQL commands, as well as&amp;nbsp;run &lt;EM&gt;hdfs dfs -ls /user/sampleuser&lt;/EM&gt;&amp;nbsp;or &lt;EM&gt;hdfs dfs -put tmp/localfile /user/sampleuser/hdfsdestfile &lt;/EM&gt;or&lt;EM&gt; hdfs dfs -get /user/sampleuser/hdfsdestfile tmp/localfile&lt;/EM&gt;, from the same edge node where I'm having issue with sample Pi MR job mentioned above (which suggests that Kerberos and HDFS TDE must be working for HDFS and Hive). Also, same user, authenticated (via kinit)&amp;nbsp;as cluster local MIT KDC principal,&amp;nbsp;can succesfully run the same sample MapReduce job (Pi number calculation) from &lt;U&gt;any other node&lt;/U&gt; of the cluster.&amp;nbsp;&lt;U&gt;Users that do not have their home HDFS folder encrypted&lt;/U&gt; with HDFS TDE &lt;U&gt;have no issues executing sample MR Pi job&lt;/U&gt; from either edge node or any other nodes on the cluster.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My environment is as follows:&lt;/P&gt;&lt;P&gt;- CDH 5.7.1, secured with local MIT KDC with one way trust to Active Directory KDC.&lt;/P&gt;&lt;P&gt;- Edge node:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is managed by Cloudera Cluster Manager.&lt;/LI&gt;&lt;LI&gt;Latest cluster CDH client and Kerberos configs have been deployed to edge node.&lt;/LI&gt;&lt;LI&gt;JCE Unlimited Strength Jurisdiction Policy Files have been deployed to edge&amp;nbsp;and JDK 1.8.0_92 is matching the rest of the cluster.&lt;/LI&gt;&lt;LI&gt;HDFS transparent data encryption is enabled using on-cluster Cloudera Navigator Key Trustee Server / Key Trustee KMS server.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;User executing user has full access to the encryption keys&amp;nbsp;for his HDFS home folder encryption zone (no custom KMS ACLs have been deloyed). Error suggests that no valid Kerberos credentials have been provided which is not true. Please advise&amp;nbsp;if you have encountered this or have any thoughts. At this point I'm ready to&amp;nbsp;give up on Kerberos&amp;nbsp;+ Encrypted (TDE)&amp;nbsp;HDFS home user folder configuration as non-working in case of edge node as source of MR job submission.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;$ kinit sampleuser@LOCALMITKDCREALM.COMPANY.COM&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Password for sampleuser@LOCALMITKDCREALM.COMPANY.COM:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;$ klist&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Ticket cache: FILE:/tmp/krb5cc_10048&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Default principal: sampleuser@LOCALMITKDCREALM.COMPANY.COM&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Valid starting Expires Service principal&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;12/18/16 22:06:29 12/19/16 22:06:29 krbtgt/LOCALMITKDCREALM.COMPANY.COM@LOCALMITKDCREALM.COMPANY.COM&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;renew until 12/25/16 22:06:29&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;$ hadoop jar /opt/cloudera/parcels/CDH/lib/hadoop-0.20-mapreduce/hadoop-examples.jar pi 10 10000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Number of Maps = 10&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Samples per Map = 10000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Wrote input for Map #0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Wrote input for Map #1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Wrote input for Map #2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Wrote input for Map #3&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Wrote input for Map #4&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Wrote input for Map #5&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Wrote input for Map #6&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Wrote input for Map #7&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Wrote input for Map #8&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Wrote input for Map #9&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Starting Job&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;16/12/18 22:09:59 INFO hdfs.DFSClient: Created HDFS_DELEGATION_TOKEN token 294 for sampleuser on ha-hdfs:CDHCLUSTER-ns&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;16/12/18 22:09:59 INFO security.TokenCache: Got dt for hdfs://CDHCLUSTER-ns; Kind: HDFS_DELEGATION_TOKEN, Service: ha-hdfs:CDHCLUSTER-ns, Ident: (HDFS_DELEGATION_TOKEN token 294 for sampleuser)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;16/12/18 22:09:59 WARN token.Token: Cannot find class for token kind kms-dt&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;16/12/18 22:09:59 INFO security.TokenCache: Got dt for hdfs://CDHCLUSTER-ns; Kind: kms-dt, Service: xx.xxx.xxx.16:16000, Ident: 00 03 62 64 64 04 79 61 72 6e 00 8a 01 59 15 45 98 c3 8a 01 59 39 52 1c c3 8e 01 12 7c&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;16/12/18 22:09:59 WARN token.Token: Cannot find class for token kind kms-dt&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;16/12/18 22:09:59 INFO security.TokenCache: Got dt for hdfs://CDHCLUSTER-ns; Kind: kms-dt, Service: xx.xxx.xxx.15:16000, Ident: 00 03 62 64 64 04 79 61 72 6e 00 8a 01 59 15 45 99 4d 8a 01 59 39 52 1d 4d 8e 01 13 7a&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;16/12/18 22:10:00 INFO input.FileInputFormat: Total input paths to process : 10&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;16/12/18 22:10:00 INFO mapreduce.JobSubmitter: number of splits:10&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;16/12/18 22:10:00 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1481262207801_0093&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;16/12/18 22:10:00 INFO mapreduce.JobSubmitter: Kind: HDFS_DELEGATION_TOKEN, Service: ha-hdfs:CDHCLUSTER-ns, Ident: (HDFS_DELEGATION_TOKEN token 294 for sampleuser)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;16/12/18 22:10:00 WARN token.Token: Cannot find class for token kind kms-dt&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;16/12/18 22:10:00 WARN token.Token: Cannot find class for token kind kms-dt&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Kind: kms-dt, Service: xx.xxx.xxx.15:16000, Ident: 00 03 62 64 64 04 79 61 72 6e 00 8a 01 59 15 45 99 4d 8a 01 59 39 52 1d 4d 8e 01 13 7a&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;16/12/18 22:10:00 WARN token.Token: Cannot find class for token kind kms-dt&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;16/12/18 22:10:00 WARN token.Token: Cannot find class for token kind kms-dt&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Kind: kms-dt, Service: xx.xxx.xxx.16:16000, Ident: 00 03 62 64 64 04 79 61 72 6e 00 8a 01 59 15 45 98 c3 8a 01 59 39 52 1c c3 8e 01 12 7c&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;16/12/18 22:10:00 INFO impl.YarnClientImpl: Submitted application application_1481262207801_0093&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;16/12/18 22:10:00 INFO mapreduce.Job: The url to track the job: &lt;A href="http://CDHCLUSTERn03.COMPANY.COM:8088/proxy/application_1481262207801_0093/" target="_blank"&gt;http://CDHCLUSTERn03.COMPANY.COM:8088/proxy/application_1481262207801_0093/&lt;/A&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;16/12/18 22:10:00 INFO mapreduce.Job: Running job: job_1481262207801_0093&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;16/12/18 22:10:05 INFO mapreduce.Job: Job job_1481262207801_0093 running in uber mode : false&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;16/12/18 22:10:05 INFO mapreduce.Job: map 0% reduce 0%&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000" face="courier new,courier" size="2"&gt;16/12/18 22:10:05 INFO mapreduce.Job: Job job_1481262207801_0093 failed with state FAILED due to: Application application_1481262207801_0093 failed 2 times due to AM Container for appattempt_1481262207801_0093_000002 exited with exitCode: -1000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;FONT color="#ff0000"&gt;For more detailed output, check application tracking &lt;/FONT&gt;page:&lt;A href="http://CDHCLUSTERn03.COMPANY.COM:8088/proxy/application_1481262207801_0093/Then" target="_blank"&gt;http://CDHCLUSTERn03.COMPANY.COM:8088/proxy/application_1481262207801_0093/Then&lt;/A&gt;, click on links to logs of each attempt.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000" face="courier new,courier" size="2"&gt;Diagnostics: org.apache.hadoop.security.authentication.client.AuthenticationException: GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000" face="courier new,courier" size="2"&gt;java.io.IOException: org.apache.hadoop.security.authentication.client.AuthenticationException: GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.crypto.key.kms.KMSClientProvider.createConnection(KMSClientProvider.java:491)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.crypto.key.kms.KMSClientProvider.decryptEncryptedKey(KMSClientProvider.java:771)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.crypto.key.kms.LoadBalancingKMSClientProvider$3.call(LoadBalancingKMSClientProvider.java:185)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.crypto.key.kms.LoadBalancingKMSClientProvider$3.call(LoadBalancingKMSClientProvider.java:181)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.crypto.key.kms.LoadBalancingKMSClientProvider.doOp(LoadBalancingKMSClientProvider.java:94)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.crypto.key.kms.LoadBalancingKMSClientProvider.decryptEncryptedKey(LoadBalancingKMSClientProvider.java:181)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.crypto.key.KeyProviderCryptoExtension.decryptEncryptedKey(KeyProviderCryptoExtension.java:388)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.hdfs.DFSClient.decryptEncryptedDataEncryptionKey(DFSClient.java:1420)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.hdfs.DFSClient.createWrappedInputStream(DFSClient.java:1490)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.hdfs.DistributedFileSystem$3.doCall(DistributedFileSystem.java:311)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.hdfs.DistributedFileSystem$3.doCall(DistributedFileSystem.java:305)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.hdfs.DistributedFileSystem.open(DistributedFileSystem.java:305)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.fs.FileSystem.open(FileSystem.java:778)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:367)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.yarn.util.FSDownload.copy(FSDownload.java:265)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.yarn.util.FSDownload.access$000(FSDownload.java:61)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.yarn.util.FSDownload$2.run(FSDownload.java:359)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.yarn.util.FSDownload$2.run(FSDownload.java:357)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at javax.security.auth.Subject.doAs(Subject.java:422)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1693)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.yarn.util.FSDownload.call(FSDownload.java:356)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.yarn.util.FSDownload.call(FSDownload.java:60)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:266)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:266)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.lang.Thread.run(Thread.java:745)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Caused by: org.apache.hadoop.security.authentication.client.AuthenticationException: GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.authentication.client.KerberosAuthenticator.doSpnegoSequence(KerberosAuthenticator.java:306)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.authentication.client.KerberosAuthenticator.authenticate(KerberosAuthenticator.java:196)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator.authenticate(DelegationTokenAuthenticator.java:127)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.authentication.client.AuthenticatedURL.openConnection(AuthenticatedURL.java:215)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.openConnection(DelegationTokenAuthenticatedURL.java:322)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.crypto.key.kms.KMSClientProvider$1.run(KMSClientProvider.java:485)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.crypto.key.kms.KMSClientProvider$1.run(KMSClientProvider.java:480)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at javax.security.auth.Subject.doAs(Subject.java:422)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1693)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.crypto.key.kms.KMSClientProvider.createConnection(KMSClientProvider.java:480)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;... 29 more&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Caused by: GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at sun.security.jgss.krb5.Krb5InitCredential.getInstance(Krb5InitCredential.java:147)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at sun.security.jgss.krb5.Krb5MechFactory.getCredentialElement(Krb5MechFactory.java:122)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at sun.security.jgss.krb5.Krb5MechFactory.getMechanismContext(Krb5MechFactory.java:187)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at sun.security.jgss.GSSManagerImpl.getMechanismContext(GSSManagerImpl.java:224)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:212)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:179)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.authentication.client.KerberosAuthenticator$1.run(KerberosAuthenticator.java:285)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.authentication.client.KerberosAuthenticator$1.run(KerberosAuthenticator.java:261)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at javax.security.auth.Subject.doAs(Subject.java:422)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.authentication.client.KerberosAuthenticator.doSpnegoSequence(KerberosAuthenticator.java:261)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;... 39 more&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Caused by: GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;org.apache.hadoop.security.authentication.client.AuthenticationException: GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.authentication.client.KerberosAuthenticator.doSpnegoSequence(KerberosAuthenticator.java:306)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.authentication.client.KerberosAuthenticator.authenticate(KerberosAuthenticator.java:196)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator.authenticate(DelegationTokenAuthenticator.java:127)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.authentication.client.AuthenticatedURL.openConnection(AuthenticatedURL.java:215)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.openConnection(DelegationTokenAuthenticatedURL.java:322)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.crypto.key.kms.KMSClientProvider$1.run(KMSClientProvider.java:485)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.crypto.key.kms.KMSClientProvider$1.run(KMSClientProvider.java:480)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at javax.security.auth.Subject.doAs(Subject.java:422)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1693)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.crypto.key.kms.KMSClientProvider.createConnection(KMSClientProvider.java:480)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.crypto.key.kms.KMSClientProvider.decryptEncryptedKey(KMSClientProvider.java:771)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.crypto.key.kms.LoadBalancingKMSClientProvider$3.call(LoadBalancingKMSClientProvider.java:185)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.crypto.key.kms.LoadBalancingKMSClientProvider$3.call(LoadBalancingKMSClientProvider.java:181)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.crypto.key.kms.LoadBalancingKMSClientProvider.doOp(LoadBalancingKMSClientProvider.java:94)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.crypto.key.kms.LoadBalancingKMSClientProvider.decryptEncryptedKey(LoadBalancingKMSClientProvider.java:181)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.crypto.key.KeyProviderCryptoExtension.decryptEncryptedKey(KeyProviderCryptoExtension.java:388)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.hdfs.DFSClient.decryptEncryptedDataEncryptionKey(DFSClient.java:1420)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.hdfs.DFSClient.createWrappedInputStream(DFSClient.java:1490)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.hdfs.DistributedFileSystem$3.doCall(DistributedFileSystem.java:311)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.hdfs.DistributedFileSystem$3.doCall(DistributedFileSystem.java:305)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.hdfs.DistributedFileSystem.open(DistributedFileSystem.java:305)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.fs.FileSystem.open(FileSystem.java:778)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:367)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.yarn.util.FSDownload.copy(FSDownload.java:265)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.yarn.util.FSDownload.access$000(FSDownload.java:61)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.yarn.util.FSDownload$2.run(FSDownload.java:359)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.yarn.util.FSDownload$2.run(FSDownload.java:357)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at javax.security.auth.Subject.doAs(Subject.java:422)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1693)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.yarn.util.FSDownload.call(FSDownload.java:356)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.yarn.util.FSDownload.call(FSDownload.java:60)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:266)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:266)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.lang.Thread.run(Thread.java:745)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Caused by: GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at sun.security.jgss.krb5.Krb5InitCredential.getInstance(Krb5InitCredential.java:147)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at sun.security.jgss.krb5.Krb5MechFactory.getCredentialElement(Krb5MechFactory.java:122)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at sun.security.jgss.krb5.Krb5MechFactory.getMechanismContext(Krb5MechFactory.java:187)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at sun.security.jgss.GSSManagerImpl.getMechanismContext(GSSManagerImpl.java:224)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:212)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:179)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.authentication.client.KerberosAuthenticator$1.run(KerberosAuthenticator.java:285)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.authentication.client.KerberosAuthenticator$1.run(KerberosAuthenticator.java:261)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at javax.security.auth.Subject.doAs(Subject.java:422)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.authentication.client.KerberosAuthenticator.doSpnegoSequence(KerberosAuthenticator.java:261)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;... 39 more&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Caused by: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at sun.security.jgss.krb5.Krb5InitCredential.getInstance(Krb5InitCredential.java:147)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at sun.security.jgss.krb5.Krb5MechFactory.getCredentialElement(Krb5MechFactory.java:122)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at sun.security.jgss.krb5.Krb5MechFactory.getMechanismContext(Krb5MechFactory.java:187)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at sun.security.jgss.GSSManagerImpl.getMechanismContext(GSSManagerImpl.java:224)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:212)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:179)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.authentication.client.KerberosAuthenticator$1.run(KerberosAuthenticator.java:285)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.authentication.client.KerberosAuthenticator$1.run(KerberosAuthenticator.java:261)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at javax.security.auth.Subject.doAs(Subject.java:422)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.authentication.client.KerberosAuthenticator.doSpnegoSequence(KerberosAuthenticator.java:261)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.authentication.client.KerberosAuthenticator.authenticate(KerberosAuthenticator.java:196)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator.authenticate(DelegationTokenAuthenticator.java:127)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.authentication.client.AuthenticatedURL.openConnection(AuthenticatedURL.java:215)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.openConnection(DelegationTokenAuthenticatedURL.java:322)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.crypto.key.kms.KMSClientProvider$1.run(KMSClientProvider.java:485)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.crypto.key.kms.KMSClientProvider$1.run(KMSClientProvider.java:480)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at javax.security.auth.Subject.doAs(Subject.java:422)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1693)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.crypto.key.kms.KMSClientProvider.createConnection(KMSClientProvider.java:480)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.crypto.key.kms.KMSClientProvider.decryptEncryptedKey(KMSClientProvider.java:771)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.crypto.key.kms.LoadBalancingKMSClientProvider$3.call(LoadBalancingKMSClientProvider.java:185)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.crypto.key.kms.LoadBalancingKMSClientProvider$3.call(LoadBalancingKMSClientProvider.java:181)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.crypto.key.kms.LoadBalancingKMSClientProvider.doOp(LoadBalancingKMSClientProvider.java:94)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.crypto.key.kms.LoadBalancingKMSClientProvider.decryptEncryptedKey(LoadBalancingKMSClientProvider.java:181)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.crypto.key.KeyProviderCryptoExtension.decryptEncryptedKey(KeyProviderCryptoExtension.java:388)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.hdfs.DFSClient.decryptEncryptedDataEncryptionKey(DFSClient.java:1420)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.hdfs.DFSClient.createWrappedInputStream(DFSClient.java:1490)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.hdfs.DistributedFileSystem$3.doCall(DistributedFileSystem.java:311)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.hdfs.DistributedFileSystem$3.doCall(DistributedFileSystem.java:305)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.hdfs.DistributedFileSystem.open(DistributedFileSystem.java:305)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.fs.FileSystem.open(FileSystem.java:778)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:367)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.yarn.util.FSDownload.copy(FSDownload.java:265)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.yarn.util.FSDownload.access$000(FSDownload.java:61)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.yarn.util.FSDownload$2.run(FSDownload.java:359)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.yarn.util.FSDownload$2.run(FSDownload.java:357)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at javax.security.auth.Subject.doAs(Subject.java:422)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1693)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.yarn.util.FSDownload.call(FSDownload.java:356)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.yarn.util.FSDownload.call(FSDownload.java:60)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:266)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:266)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.lang.Thread.run(Thread.java:745)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Failing this attempt. Failing the application.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;16/12/18 22:10:05 INFO mapreduce.Job: Counters: 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Job Finished in 6.231 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;java.io.FileNotFoundException: File does not exist: hdfs://CDHCLUSTER-ns/user/sampleuser/QuasiMonteCarlo_1482120585946_2008146201/out/reduce-out&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.hdfs.DistributedFileSystem$19.doCall(DistributedFileSystem.java:1219)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.hdfs.DistributedFileSystem$19.doCall(DistributedFileSystem.java:1211)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1211)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.io.SequenceFile$Reader.&amp;lt;init&amp;gt;(SequenceFile.java:1817)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.io.SequenceFile$Reader.&amp;lt;init&amp;gt;(SequenceFile.java:1841)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.examples.QuasiMonteCarlo.estimatePi(QuasiMonteCarlo.java:314)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.examples.QuasiMonteCarlo.run(QuasiMonteCarlo.java:354)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.examples.QuasiMonteCarlo.main(QuasiMonteCarlo.java:363)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.lang.reflect.Method.invoke(Method.java:498)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:71)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.util.ProgramDriver.run(ProgramDriver.java:144)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:74)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at java.lang.reflect.Method.invoke(Method.java:498)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.util.RunJar.run(RunJar.java:221)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;at org.apache.hadoop.util.RunJar.main(RunJar.java:136)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 05:32:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sample-MR-job-fails-from-edge-node-after-encrypting-user/m-p/48617#M49275</guid>
      <dc:creator>Olex</dc:creator>
      <dc:date>2016-12-19T05:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sample MR job fails from edge node after encrypting user home folder in HDFS on kerberized clust</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sample-MR-job-fails-from-edge-node-after-encrypting-user/m-p/48625#M49276</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know if the map/reduce job you are submitting is Kerberos compatible. That is the first check to do.&lt;/P&gt;&lt;P&gt;Then, if that job is Kerberos compatible, it might need some settings like supplying a jaas configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The kinit of a ticket is sometimes not enough.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, when running the map/reduce job "MapReduceIndexerTool", you need to supply a jaas configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;HADOOP_OPTS="-Djava.security.auth.login.config=/home/user/jaas.conf" \
hadoop jar MapReduceIndexerTool&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See: &lt;A href="https://www.cloudera.com/documentation/enterprise/5-4-x/topics/cdh_sg_search_security.html" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/5-4-x/topics/cdh_sg_search_security.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 11:33:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sample-MR-job-fails-from-edge-node-after-encrypting-user/m-p/48625#M49276</guid>
      <dc:creator>mathieu.d</dc:creator>
      <dc:date>2016-12-19T11:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sample MR job fails from edge node after encrypting user home folder in HDFS on kerberized clust</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sample-MR-job-fails-from-edge-node-after-encrypting-user/m-p/48635#M49277</link>
      <description>&lt;P&gt;The job I'm using for testing is a standard Hadoop Pi number calculation job that comes with CDH and doesn't require any additional settings per my knowledge. This job is used as per CDH documentation for cluster testing - please see &lt;A title="Step 17: Verify that Kerberos Security is Working" href="https://www.cloudera.com/documentation/enterprise/5-7-x/topics/cm_sg_verify_kerb_security_s18.html" target="_blank"&gt;Step 17: Verify that Kerberos Security is Working&lt;/A&gt;&amp;nbsp;for details. Here is excerpt - I'm using parcel-based CDH setup:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;To verify that Kerberos security is working:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Acquire Kerberos credentials for your user account. &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;$ kinit USERNAME@YOUR-LOCAL-REALM.COM &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Enter a password when prompted.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Submit a sample &lt;FONT color="#0000ff"&gt;pi calculation as a test MapReduce job&lt;/FONT&gt;. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;....&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If you have a parcel-based setup, use the following command instead: &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$ hadoop jar /opt/cloudera/parcels/CDH/lib/hadoop-0.20-mapreduce/hadoop-examples.jar pi 10 10000
Number of Maps = 10
Samples per Map = 10000
...
Job Finished in 30.958 seconds
Estimated value of Pi is 3.14120000000000000000&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 13:16:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sample-MR-job-fails-from-edge-node-after-encrypting-user/m-p/48635#M49277</guid>
      <dc:creator>Olex</dc:creator>
      <dc:date>2016-12-19T13:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sample MR job fails from edge node after encrypting user home folder in HDFS on kerberized clust</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sample-MR-job-fails-from-edge-node-after-encrypting-user/m-p/48636#M49278</link>
      <description>&lt;P&gt;You are right, I just tested it and there is no need for additional settings (other than having initialized the kerberos ticket).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From what I read on your first post, it seems the same job do run successfully for users which do not have their home folder in HDFS encrypted ? (for the same kerberos realm) ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that is the case, I would open a SR ticket in your shoe. It would be the quickest way for obtaining a feedback from Cloudera on the matter (if there is an incompatiblity or some particular settings for this particular use case).&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 13:40:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sample-MR-job-fails-from-edge-node-after-encrypting-user/m-p/48636#M49278</guid>
      <dc:creator>mathieu.d</dc:creator>
      <dc:date>2016-12-19T13:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sample MR job fails from edge node after encrypting user home folder in HDFS on kerberized clust</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sample-MR-job-fails-from-edge-node-after-encrypting-user/m-p/48637#M49279</link>
      <description>&lt;P&gt;That is correct, users with un-encrypted HDFS homes are not having this issue running this test job from edge node. As soon as user gets HDFS home folder encrypted (HDFS encryption zone created for respective /user/username folder) - this issue starts affecting that user and standadrd test described will fail for it when running from edge node. Also, as I mentioned in my initial post, this test is successfull regardless of&amp;nbsp;user HDFS home encryption status when executed from actual cluster node (vs. edge nodes).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 13:41:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sample-MR-job-fails-from-edge-node-after-encrypting-user/m-p/48637#M49279</guid>
      <dc:creator>Olex</dc:creator>
      <dc:date>2016-12-19T13:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sample MR job fails from edge node after encrypting user home folder in HDFS on kerberized clust</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sample-MR-job-fails-from-edge-node-after-encrypting-user/m-p/48638#M49280</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it's not working only on edge nodes then there might be some configuration issue leading to that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What difference do you make beetwen "cluster nodes" and "edge nodes" ?&lt;/P&gt;&lt;P&gt;Meaning : what roles are distributed to your edge nodes ?&lt;/P&gt;&lt;P&gt;- For example, did you assign the HDFS&amp;amp;Yarn "gateway" role to your edge nodes ?&lt;/P&gt;&lt;P&gt;- If no, try doing it&lt;/P&gt;&lt;P&gt;- If yes, try redeploying the client configuration&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Might be something else.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 13:52:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sample-MR-job-fails-from-edge-node-after-encrypting-user/m-p/48638#M49280</guid>
      <dc:creator>mathieu.d</dc:creator>
      <dc:date>2016-12-19T13:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sample MR job fails from edge node after encrypting user home folder in HDFS on kerberized clust</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sample-MR-job-fails-from-edge-node-after-encrypting-user/m-p/48644#M49281</link>
      <description>&lt;P&gt;Edge nodes are managed by CM and have the following roles on them:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;HDFS Gateway&lt;/LI&gt;&lt;LI&gt;HDFS NFS Gateway&lt;/LI&gt;&lt;LI&gt;Hive Gateway&lt;/LI&gt;&lt;LI&gt;Spark Gateway&lt;/LI&gt;&lt;LI&gt;YARN (MR2 Included) Gateway&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Latest client configurations are deployed on them via CM and re-startable roles have been restarted.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 15:50:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sample-MR-job-fails-from-edge-node-after-encrypting-user/m-p/48644#M49281</guid>
      <dc:creator>Olex</dc:creator>
      <dc:date>2016-12-19T15:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sample MR job fails from edge node after encrypting user home folder in HDFS on kerberized clust</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sample-MR-job-fails-from-edge-node-after-encrypting-user/m-p/48713#M49282</link>
      <description>&lt;P&gt;I was able to resolve the issue. It&amp;nbsp;&lt;SPAN&gt;occurs because of the public-only network access from the client (edge node) to a multi-homed cluster environment (Oracle Big Data appliance in my case) and&amp;nbsp;&lt;/SPAN&gt;is also related to the bug&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://issues.apache.org/jira/browse/MAPREDUCE-6484" target="_blank"&gt;MAPREDUCE-6484&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;. Patch is available for it and in my case it was already included in CDH 5.7.1 (&lt;A href="https://archive.cloudera.com/cdh5/cdh/5/hadoop-2.6.0-cdh5.7.1.releasenotes.html" target="_blank"&gt;CDH 5.7.1 Release Notes&lt;/A&gt;). However, there was an additional setting that needed to be done on Yarn to make it work:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;Token service naming behavior needed to be changed&amp;nbsp;via core-site.xml. Under CM &amp;gt; YARN &amp;gt; Configuration &amp;gt; Scope: YARN (Service-Wide) &amp;gt; Category: Advanced &amp;gt; "YARN Service Advanced Configuration Snippet (Safety Valve) for core-site.xml"&amp;nbsp;add below property:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;DIV class="kmnotebox"&gt;&lt;SPAN&gt;&amp;lt;property&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;lt;name&amp;gt;hadoop.security.token.service.use_ip&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;lt;value&amp;gt;false&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Save the configuration change.&lt;BR /&gt;3. Deploy Client Configurations for YARN.&amp;nbsp;Restart YARN Services as needed.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The details on above setting and the discussion can be found at&amp;nbsp;&lt;A href="https://issues.apache.org/jira/browse/HADOOP-7510" target="_blank"&gt;HADOOP-7510&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 14:54:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sample-MR-job-fails-from-edge-node-after-encrypting-user/m-p/48713#M49282</guid>
      <dc:creator>Olex</dc:creator>
      <dc:date>2016-12-21T14:54:51Z</dc:date>
    </item>
  </channel>
</rss>

