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

NPE listing wildcard directory in containerLaunch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.9.0
    • 2.9.0, 3.0.0-alpha1
    • nodemanager
    • None
    • Reviewed

    Description

      YARN-4958 added support for wildcards in file localization. It introduces a NPE
      at

      for (File wildLink : directory.listFiles()) {
          sb.symlink(new Path(wildLink.toString()), new Path(wildLink.getName()));
      }
      

      When directory.listFiles returns null (only happens in a secure cluster), NPE will cause the container fail to launch.
      Hive, Oozie jobs fail as a result.

      Attachments

        1. YARN-5373.001.patch
          26 kB
          Daniel Templeton
        2. YARN-5373.002.patch
          26 kB
          Daniel Templeton
        3. YARN-5373.003.patch
          26 kB
          Daniel Templeton

        Issue Links

          Activity

            People

              templedf Daniel Templeton
              haibochen Haibo Chen
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: