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

NPE listing wildcard directory in containerLaunch

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.9.0
    • Fix Version/s: 2.9.0, 3.0.0-alpha1
    • Component/s: nodemanager
    • Labels:
      None
    • Hadoop Flags:
      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.003.patch
          26 kB
          Daniel Templeton
        2. YARN-5373.002.patch
          26 kB
          Daniel Templeton
        3. YARN-5373.001.patch
          26 kB
          Daniel Templeton

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: