<?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: Can't create directory /yarn/nm/usercache/urika/appcache/application_1 - Permission denied in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-create-directory-yarn-nm-usercache-urika-appcache/m-p/25093#M5048</link>
    <description>Could you post the outputs of the below, from your NodeManager machines where the attempt appears to have failed to run?:&lt;BR /&gt;&lt;BR /&gt;ls -ld /mnt/ssd/yarn/nm&lt;BR /&gt;ls -ld /mnt/ssd/yarn/nm/usercache&lt;BR /&gt;ls -ld /mnt/ssd/yarn/nm/usercache/urika&lt;BR /&gt;ls -l /mnt/ssd/yarn/nm/usercache/urika</description>
    <pubDate>Fri, 27 Feb 2015 03:48:45 GMT</pubDate>
    <dc:creator>Harsh J</dc:creator>
    <dc:date>2015-02-27T03:48:45Z</dc:date>
    <item>
      <title>Can't create directory /yarn/nm/usercache/urika/appcache/application_1 - Permission denied</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-create-directory-yarn-nm-usercache-urika-appcache/m-p/24891#M5047</link>
      <description>&lt;P&gt;Try to run a simple test and get permissioned denied errors; tried as both root and urika user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just enabled kerberos...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[root@skipper4 cloudera-scm-server]# hadoop jar /opt/cloudera/parcels/CDH/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar pi 10 100&lt;BR /&gt;Number of Maps = 10&lt;BR /&gt;Samples per Map = 100&lt;BR /&gt;Wrote input for Map #0&lt;BR /&gt;Wrote input for Map #1&lt;BR /&gt;Wrote input for Map #2&lt;BR /&gt;Wrote input for Map #3&lt;BR /&gt;Wrote input for Map #4&lt;BR /&gt;Wrote input for Map #5&lt;BR /&gt;Wrote input for Map #6&lt;BR /&gt;Wrote input for Map #7&lt;BR /&gt;Wrote input for Map #8&lt;BR /&gt;Wrote input for Map #9&lt;BR /&gt;Starting Job&lt;BR /&gt;15/02/21 03:11:40 INFO client.RMProxy: Connecting to ResourceManager at skipper4/10.0.1.4:8032&lt;BR /&gt;15/02/21 03:11:40 INFO hdfs.DFSClient: Created HDFS_DELEGATION_TOKEN token 4 for urika on 10.0.1.4:8020&lt;BR /&gt;15/02/21 03:11:40 INFO security.TokenCache: Got dt for hdfs://skipper4:8020; Kind: HDFS_DELEGATION_TOKEN, Service: 10.0.1.4:8020, Ident: (HDFS_DELEGATION_TOKEN token 4 for urika)&lt;BR /&gt;15/02/21 03:11:41 INFO input.FileInputFormat: Total input paths to process : 10&lt;BR /&gt;15/02/21 03:11:41 INFO mapreduce.JobSubmitter: number of splits:10&lt;BR /&gt;15/02/21 03:11:41 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1424508393097_0004&lt;BR /&gt;15/02/21 03:11:41 INFO mapreduce.JobSubmitter: Kind: HDFS_DELEGATION_TOKEN, Service: 10.0.1.4:8020, Ident: (HDFS_DELEGATION_TOKEN token 4 for urika)&lt;BR /&gt;15/02/21 03:11:41 INFO impl.YarnClientImpl: Submitted application application_1424508393097_0004&lt;BR /&gt;15/02/21 03:11:41 INFO mapreduce.Job: The url to track the job: &lt;A href="http://skipper4:8088/proxy/application_1424508393097_0004/" target="_blank"&gt;http://skipper4:8088/proxy/application_1424508393097_0004/&lt;/A&gt;&lt;BR /&gt;15/02/21 03:11:41 INFO mapreduce.Job: Running job: job_1424508393097_0004&lt;BR /&gt;15/02/21 03:11:56 INFO mapreduce.Job: Job job_1424508393097_0004 running in uber mode : false&lt;BR /&gt;15/02/21 03:11:56 INFO mapreduce.Job: map 0% reduce 0%&lt;BR /&gt;15/02/21 03:11:56 INFO mapreduce.Job: Job job_1424508393097_0004 failed with state FAILED due to: Application application_1424508393097_0004 failed 2 times due to AM Container for appattempt_1424508393097_0004_000002 exited with exitCode: -1000 due to: Application application_1424508393097_0004 initialization failed (exitCode=255) with output: main : command provided 0&lt;BR /&gt;main : user is urika&lt;BR /&gt;main : requested yarn user is urika&lt;BR /&gt;Can't create directory /mnt/ssd/yarn/nm/usercache/urika/appcache/application_1424508393097_0004 - Permission denied&lt;BR /&gt;Did not create any app directories&lt;/P&gt;&lt;P&gt;.Failing this attempt.. Failing the application.&lt;BR /&gt;15/02/21 03:11:56 INFO mapreduce.Job: Counters: 0&lt;BR /&gt;Job Finished in 15.543 seconds&lt;BR /&gt;java.io.FileNotFoundException: File does not exist: hdfs://skipper4:8020/user/urika/QuasiMonteCarlo_1424509895729_44418568/out/reduce-out&lt;BR /&gt;at org.apache.hadoop.hdfs.DistributedFileSystem$17.doCall(DistributedFileSystem.java:1093)&lt;BR /&gt;at org.apache.hadoop.hdfs.DistributedFileSystem$17.doCall(DistributedFileSystem.java:1085)&lt;BR /&gt;at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)&lt;BR /&gt;at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1085)&lt;BR /&gt;at org.apache.hadoop.io.SequenceFile$Reader.&amp;lt;init&amp;gt;(SequenceFile.java:1749)&lt;BR /&gt;at org.apache.hadoop.io.SequenceFile$Reader.&amp;lt;init&amp;gt;(SequenceFile.java:1773)&lt;BR /&gt;at org.apache.hadoop.examples.QuasiMonteCarlo.estimatePi(QuasiMonteCarlo.java:314)&lt;BR /&gt;at org.apache.hadoop.examples.QuasiMonteCarlo.run(QuasiMonteCarlo.java:354)&lt;BR /&gt;at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)&lt;BR /&gt;at org.apache.hadoop.examples.QuasiMonteCarlo.main(QuasiMonteCarlo.java:363)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Method.java:606)&lt;BR /&gt;at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:72)&lt;BR /&gt;at org.apache.hadoop.util.ProgramDriver.run(ProgramDriver.java:145)&lt;BR /&gt;at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:74)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Method.java:606)&lt;BR /&gt;at org.apache.hadoop.util.RunJar.main(RunJar.java:212)&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:22:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-create-directory-yarn-nm-usercache-urika-appcache/m-p/24891#M5047</guid>
      <dc:creator>zero</dc:creator>
      <dc:date>2022-09-16T09:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can't create directory /yarn/nm/usercache/urika/appcache/application_1 - Permission denied</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-create-directory-yarn-nm-usercache-urika-appcache/m-p/25093#M5048</link>
      <description>Could you post the outputs of the below, from your NodeManager machines where the attempt appears to have failed to run?:&lt;BR /&gt;&lt;BR /&gt;ls -ld /mnt/ssd/yarn/nm&lt;BR /&gt;ls -ld /mnt/ssd/yarn/nm/usercache&lt;BR /&gt;ls -ld /mnt/ssd/yarn/nm/usercache/urika&lt;BR /&gt;ls -l /mnt/ssd/yarn/nm/usercache/urika</description>
      <pubDate>Fri, 27 Feb 2015 03:48:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-create-directory-yarn-nm-usercache-urika-appcache/m-p/25093#M5048</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2015-02-27T03:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can't create directory /yarn/nm/usercache/urika/appcache/application_1 - Permission denied</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-create-directory-yarn-nm-usercache-urika-appcache/m-p/25166#M5049</link>
      <description>&lt;P&gt;Fix was to remove or move the urika cache directory from all the nodes with (computes in my case). &amp;nbsp;Seems that these directories&amp;nbsp;will get re-created during a run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bug when you go from simlpe AUTH to kerberos AUTH; the cache directories will not work if created under simple AUTH.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2015 01:32:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-create-directory-yarn-nm-usercache-urika-appcache/m-p/25166#M5049</guid>
      <dc:creator>zero</dc:creator>
      <dc:date>2015-03-02T01:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can't create directory /yarn/nm/usercache/urika/appcache/application_1 - Permission denied</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-create-directory-yarn-nm-usercache-urika-appcache/m-p/25679#M5050</link>
      <description>&lt;P&gt;Deleting the directory from datanodes did work for me, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2015 10:48:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-create-directory-yarn-nm-usercache-urika-appcache/m-p/25679#M5050</guid>
      <dc:creator>perk</dc:creator>
      <dc:date>2015-03-18T10:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can't create directory /yarn/nm/usercache/urika/appcache/application_1 - Permission denied</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-create-directory-yarn-nm-usercache-urika-appcache/m-p/40006#M5051</link>
      <description>&lt;P&gt;You need to apply this command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;rm -rf /dn/yarn/nm/usercache/* &amp;nbsp;{ this is my configuration }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please check you configuration inside YARN (MR2 Included) NodeManager Local Directories .&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://i.imgur.com/BHwhUnB.jpg" target="_blank"&gt;http://i.imgur.com/BHwhUnB.jpg&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to apply this to data nodes&amp;nbsp;which reported error by the YARN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is sample of my case&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://i.imgur.com/miNx454.jpg" target="_blank"&gt;http://i.imgur.com/miNx454.jpg&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ApplicationMaster reported that &amp;nbsp;C90BFH04.localdomain:8042 , which is data node no 4 .&amp;nbsp;So i applied only to the YARN directory in Node no 4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that everything is OK !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2016 18:58:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-create-directory-yarn-nm-usercache-urika-appcache/m-p/40006#M5051</guid>
      <dc:creator>akunyer</dc:creator>
      <dc:date>2016-04-21T18:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can't create directory /yarn/nm/usercache/urika/appcache/application_1 - Permission denied</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-create-directory-yarn-nm-usercache-urika-appcache/m-p/49323#M5052</link>
      <description>&lt;P&gt;I've been seeing the same problem in different environments&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the owner of the `/data/disk-$id/yarn/nm/usercache/&amp;lt;user&amp;gt;` directory is not `&amp;lt;user&amp;gt;` but rather `keytrustee` .&lt;/P&gt;&lt;P&gt;Subsequent containers that get assigned to this NodeManager then fail with a permission error: that &amp;lt;user&amp;gt; doesnt have the permission to write into a directory owned by `keytrustee`.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how YARN decides who owns this directory? Is it the process uid that runs the container?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is mentioned above that certain configuration changes require those directories to be cleared / re-initialized. What configuration&amp;nbsp;changes are those? Just moving from an unkerberized to a kerberized cluster?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Furthermore, is there a tool that can be used to clear those directories?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 20:56:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-create-directory-yarn-nm-usercache-urika-appcache/m-p/49323#M5052</guid>
      <dc:creator>jbowles</dc:creator>
      <dc:date>2017-01-11T20:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can't create directory /yarn/nm/usercache/urika/appcache/application_1 - Permission denied</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-create-directory-yarn-nm-usercache-urika-appcache/m-p/49327#M5053</link>
      <description>to add to that - does changing the container executor to org.apache.hadoop.yarn.server.nodemanager.LinuxContainerExecutor require clearing those directories too?</description>
      <pubDate>Wed, 11 Jan 2017 21:22:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-create-directory-yarn-nm-usercache-urika-appcache/m-p/49327#M5053</guid>
      <dc:creator>jbowles</dc:creator>
      <dc:date>2017-01-11T21:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can't create directory /yarn/nm/usercache/urika/appcache/application_1 - Permission denied</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-create-directory-yarn-nm-usercache-urika-appcache/m-p/90148#M5054</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/13882"&gt;@jbowles&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, it is advisable to clean up the NM local directories when changing LCE setting, please see&amp;nbsp;&lt;A href="https://www.cloudera.com/documentation/enterprise/5-10-x/topics/cdh_sg_other_hadoop_security.html#topic_18_3" target="_blank" rel="noopener"&gt;https://www.cloudera.com/documentation/enterprise/5-10-x/topics/cdh_sg_other_hadoop_security.html#topic_18_3&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="body conbody"&gt;&lt;EM&gt;&lt;SPAN class="title"&gt;Important:&lt;/SPAN&gt;&amp;nbsp;Configuration changes to the Linux container executor could result in local NodeManager directories (such as&amp;nbsp;usercache) being left with incorrect permissions. To avoid this, when making changes using either Cloudera Manager or the command line, first manually remove the existing NodeManager local directories from all configured local directories (yarn.nodemanager.local-dirs), and let the NodeManager recreate the directory structure.&lt;/EM&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 May 2019 01:57:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-create-directory-yarn-nm-usercache-urika-appcache/m-p/90148#M5054</guid>
      <dc:creator>SidAhuja</dc:creator>
      <dc:date>2019-05-09T01:57:31Z</dc:date>
    </item>
  </channel>
</rss>

