Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-9616

Shared Cache Manager Failed To Upload Unpacked Resources

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.8.3, 2.9.2, 2.8.5
    • None
    • None
    • None

    Description

      Yarn will unpack archives files and some other files based on the file type and configuration. E.g.
      If I started an MR job with -archive one.zip, then the one.zip will be unpacked while download. Let's say there're file1 && file2 inside one.zip. Then the files kept on local disk will be like /disk3/yarn/local/filecache/352/one.zip/file1 and/disk3/yarn/local/filecache/352/one.zip/file2. So the shared cache uploader couldn't upload one.zip to shared cache as it was removed during localization. The following errors will be thrown.

      org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.sharedcache.SharedCacheUploader: Exception while uploading the file dict.zip
      java.io.FileNotFoundException: File /disk3/yarn/local/filecache/352/one.zip/one.zip does not exist
              at org.apache.hadoop.fs.RawLocalFileSystem.deprecatedGetFileStatus(RawLocalFileSystem.java:631)
              at org.apache.hadoop.fs.RawLocalFileSystem.getFileLinkStatusInternal(RawLocalFileSystem.java:857)
              at org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:621)
              at org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:442)
              at org.apache.hadoop.fs.ChecksumFileSystem$ChecksumFSInputChecker.<init>(ChecksumFileSystem.java:146)
              at org.apache.hadoop.fs.ChecksumFileSystem.open(ChecksumFileSystem.java:347)
              at org.apache.hadoop.fs.FileSystem.open(FileSystem.java:926)
              at org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.sharedcache.SharedCacheUploader.computeChecksum(SharedCacheUploader.java:257)
              at org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.sharedcache.SharedCacheUploader.call(SharedCacheUploader.java:128)
              at org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.sharedcache.SharedCacheUploader.call(SharedCacheUploader.java:55)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)
      
      

      Attachments

        1. YARN-9616.001-2.9.patch
          9 kB
          zhenzhao wang

        Issue Links

          Activity

            People

              wzzdreamer zhenzhao wang
              wzzdreamer zhenzhao wang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: