<?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 Rename cannot overwrite non empty destination directory /yarn/nm/usercache/hdfs/filecache/812 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Rename-cannot-overwrite-non-empty-destination-directory-yarn/m-p/32923#M8641</link>
    <description>&lt;P&gt;Using CDH 5.4.7-1.cdh5.4.7.p0.3, when I run multiple mapreduce jobs one after another, eventually one of the jobs will fail with this stack trace:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;2015-10-13 14:22:28,187 WARN org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.ResourceLocalizationService: { hdfs://hdfs-nameservice/user/hdfs/.staging/job_1444734646472_0003/libjars/htrace-core-3.1.0-incubating.jar, 1444738926587, FILE, null } failed: Rename cannot overwrite non empty destination directory /yarn/nm/usercache/hdfs/filecache/945&lt;BR /&gt;java.io.IOException: Rename cannot overwrite non empty destination directory /yarn/nm/usercache/hdfs/filecache/945&lt;BR /&gt; at org.apache.hadoop.fs.AbstractFileSystem.renameInternal(AbstractFileSystem.java:716)&lt;BR /&gt; at org.apache.hadoop.fs.FilterFs.renameInternal(FilterFs.java:228)&lt;BR /&gt; at org.apache.hadoop.fs.AbstractFileSystem.rename(AbstractFileSystem.java:659)&lt;BR /&gt; at org.apache.hadoop.fs.FileContext.rename(FileContext.java:909)&lt;BR /&gt; at org.apache.hadoop.yarn.util.FSDownload.call(FSDownload.java:364)&lt;BR /&gt; at org.apache.hadoop.yarn.util.FSDownload.call(FSDownload.java:60)&lt;BR /&gt; at java.util.concurrent.FutureTask.run(FutureTask.java:262)&lt;BR /&gt; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)&lt;BR /&gt; at java.util.concurrent.FutureTask.run(FutureTask.java:262)&lt;BR /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)&lt;BR /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)&lt;BR /&gt; at java.lang.Thread.run(Thread.java:745)&lt;BR /&gt; &lt;BR /&gt;2015-10-13 14:22:28,188 INFO org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.LocalizedResource: Resource hdfs://hdfs-nameservice/user/hdfs/.staging/job_1444734646472_0003/libjars/htrace-core-3.1.0-incubating.jar(-&amp;gt;/yarn/nm/usercache/hdfs/filecache/945/htrace-core-3.1.0-incubating.jar) transitioned from DOWNLOADING to FAILED&lt;BR /&gt;2015-10-13 14:22:28,188 INFO org.apache.hadoop.yarn.server.nodemanager.containermanager.container.Container: Container container_e10_1444734646472_0003_01_000001 transitioned from LOCALIZING to LOCALIZATION_FAILED&lt;BR /&gt;2015-10-13 14:22:28,188 INFO org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.LocalResourcesTrackerImpl: Container container_e10_1444734646472_0003_01_000001 sent RELEASE event on a resource request { hdfs://hdfs-nameservice/user/hdfs/.staging/job_1444734646472_0003/libjars/htrace-core-3.1.0-incubating.jar, 1444738926587, FILE, null } not present in cache.&lt;BR /&gt;2015-10-13 14:22:28,188 INFO org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.ResourceLocalizationService: Unknown localizer with localizerId container_e10_1444734646472_0003_01_000001 is sending heartbeat. Ordering it to DIE&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The number in the path varies, but restarting the failed job does not get rid of the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to set set the&amp;nbsp;yarn.nodemanager.localizer.cache.target-size-mb to 0, restarting YARN, and waiting until after the cleanup, but it doesn't help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The file&amp;nbsp;/yarn/nm/usercache/hdfs/filecache/812 does not seem to exist before/after running the job.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anybody experienced this, or have an explanation as to why it happens?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 09:43:48 GMT</pubDate>
    <dc:creator>ahnfelt</dc:creator>
    <dc:date>2022-09-16T09:43:48Z</dc:date>
    <item>
      <title>Rename cannot overwrite non empty destination directory /yarn/nm/usercache/hdfs/filecache/812</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Rename-cannot-overwrite-non-empty-destination-directory-yarn/m-p/32923#M8641</link>
      <description>&lt;P&gt;Using CDH 5.4.7-1.cdh5.4.7.p0.3, when I run multiple mapreduce jobs one after another, eventually one of the jobs will fail with this stack trace:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;2015-10-13 14:22:28,187 WARN org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.ResourceLocalizationService: { hdfs://hdfs-nameservice/user/hdfs/.staging/job_1444734646472_0003/libjars/htrace-core-3.1.0-incubating.jar, 1444738926587, FILE, null } failed: Rename cannot overwrite non empty destination directory /yarn/nm/usercache/hdfs/filecache/945&lt;BR /&gt;java.io.IOException: Rename cannot overwrite non empty destination directory /yarn/nm/usercache/hdfs/filecache/945&lt;BR /&gt; at org.apache.hadoop.fs.AbstractFileSystem.renameInternal(AbstractFileSystem.java:716)&lt;BR /&gt; at org.apache.hadoop.fs.FilterFs.renameInternal(FilterFs.java:228)&lt;BR /&gt; at org.apache.hadoop.fs.AbstractFileSystem.rename(AbstractFileSystem.java:659)&lt;BR /&gt; at org.apache.hadoop.fs.FileContext.rename(FileContext.java:909)&lt;BR /&gt; at org.apache.hadoop.yarn.util.FSDownload.call(FSDownload.java:364)&lt;BR /&gt; at org.apache.hadoop.yarn.util.FSDownload.call(FSDownload.java:60)&lt;BR /&gt; at java.util.concurrent.FutureTask.run(FutureTask.java:262)&lt;BR /&gt; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)&lt;BR /&gt; at java.util.concurrent.FutureTask.run(FutureTask.java:262)&lt;BR /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)&lt;BR /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)&lt;BR /&gt; at java.lang.Thread.run(Thread.java:745)&lt;BR /&gt; &lt;BR /&gt;2015-10-13 14:22:28,188 INFO org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.LocalizedResource: Resource hdfs://hdfs-nameservice/user/hdfs/.staging/job_1444734646472_0003/libjars/htrace-core-3.1.0-incubating.jar(-&amp;gt;/yarn/nm/usercache/hdfs/filecache/945/htrace-core-3.1.0-incubating.jar) transitioned from DOWNLOADING to FAILED&lt;BR /&gt;2015-10-13 14:22:28,188 INFO org.apache.hadoop.yarn.server.nodemanager.containermanager.container.Container: Container container_e10_1444734646472_0003_01_000001 transitioned from LOCALIZING to LOCALIZATION_FAILED&lt;BR /&gt;2015-10-13 14:22:28,188 INFO org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.LocalResourcesTrackerImpl: Container container_e10_1444734646472_0003_01_000001 sent RELEASE event on a resource request { hdfs://hdfs-nameservice/user/hdfs/.staging/job_1444734646472_0003/libjars/htrace-core-3.1.0-incubating.jar, 1444738926587, FILE, null } not present in cache.&lt;BR /&gt;2015-10-13 14:22:28,188 INFO org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.ResourceLocalizationService: Unknown localizer with localizerId container_e10_1444734646472_0003_01_000001 is sending heartbeat. Ordering it to DIE&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The number in the path varies, but restarting the failed job does not get rid of the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to set set the&amp;nbsp;yarn.nodemanager.localizer.cache.target-size-mb to 0, restarting YARN, and waiting until after the cleanup, but it doesn't help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The file&amp;nbsp;/yarn/nm/usercache/hdfs/filecache/812 does not seem to exist before/after running the job.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anybody experienced this, or have an explanation as to why it happens?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:43:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Rename-cannot-overwrite-non-empty-destination-directory-yarn/m-p/32923#M8641</guid>
      <dc:creator>ahnfelt</dc:creator>
      <dc:date>2022-09-16T09:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Rename cannot overwrite non empty destination directory /yarn/nm/usercache/hdfs/filecache/812</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Rename-cannot-overwrite-non-empty-destination-directory-yarn/m-p/33080#M8642</link>
      <description>&lt;P&gt;The error was initially&amp;nbsp;encountered in an older version of CDH, and it disappeared when we also updated the client to the same version.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2015 08:24:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Rename-cannot-overwrite-non-empty-destination-directory-yarn/m-p/33080#M8642</guid>
      <dc:creator>ahnfelt</dc:creator>
      <dc:date>2015-10-19T08:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Rename cannot overwrite non empty destination directory /yarn/nm/usercache/hdfs/filecache/812</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Rename-cannot-overwrite-non-empty-destination-directory-yarn/m-p/33091#M8643</link>
      <description>&lt;P&gt;Congratulations on solving your issue. Feel free to mark your previous response as the solution to the issue in case it can help others in the future.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2015 12:36:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Rename-cannot-overwrite-non-empty-destination-directory-yarn/m-p/33091#M8643</guid>
      <dc:creator>cjervis</dc:creator>
      <dc:date>2015-10-19T12:36:08Z</dc:date>
    </item>
  </channel>
</rss>

