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

Nodemanager container crash after ext3 folder limit

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 2.9.0, 3.0.0-beta1, 2.8.2
    • None
    • None
    • Reviewed

    Description

      Configure umask as 027 for nodemanager service user
      and yarn.nodemanager.local-cache.max-files-per-directory as 40. After 4 private dir localization next directory will be 0/14

      Local Directory cache manager

      vm2:/opt/hadoop/release/data/nmlocal/usercache/mapred/filecache # l
      total 28
      drwx--x--- 7 mapred hadoop 4096 Jun 10 14:35 ./
      drwxr-s--- 4 mapred hadoop 4096 Jun 10 12:07 ../
      drwxr-x--- 3 mapred users  4096 Jun 10 14:36 0/
      drwxr-xr-x 3 mapred users  4096 Jun 10 12:15 10/
      drwxr-xr-x 3 mapred users  4096 Jun 10 12:22 11/
      drwxr-xr-x 3 mapred users  4096 Jun 10 12:27 12/
      drwxr-xr-x 3 mapred users  4096 Jun 10 12:31 13/
      
      

      drwxr-x--- 3 mapred users 4096 Jun 10 14:36 0/ is only 750
      Nodemanager user will not be able check for localization path exists or not.

      LocalResourcesTrackerImpl

          case REQUEST:
            if (rsrc != null && (!isResourcePresent(rsrc))) {
              LOG.info("Resource " + rsrc.getLocalPath()
                  + " is missing, localizing it again");
              removeResource(req);
              rsrc = null;
            }
            if (null == rsrc) {
              rsrc = new LocalizedResource(req, dispatcher);
              localrsrc.put(req, rsrc);
            }
            break;
      

      isResourcePresent will always return false and same resource will be localized to 0 to next unique number

      Attachments

        1. YARN-6708.001.patch
          9 kB
          Bibin Chundatt
        2. YARN-6708.002.patch
          9 kB
          Bibin Chundatt
        3. YARN-6708.003.patch
          15 kB
          Bibin Chundatt
        4. YARN-6708.004.patch
          13 kB
          Bibin Chundatt
        5. YARN-6708.005.patch
          8 kB
          Bibin Chundatt
        6. YARN-6708.006.patch
          8 kB
          Bibin Chundatt
        7. YARN-6708.007.patch
          9 kB
          Bibin Chundatt

        Activity

          People

            bibinchundatt Bibin Chundatt
            bibinchundatt Bibin Chundatt
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: