Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-905

Code to qualify inputDirs doesn't affect path validation

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.1
    • Fix Version/s: 0.11.0
    • Component/s: fs
    • Labels:
      None

      Description

      This code, at JobClient:306, doesn't seem to validate the fully qualified inputDirs, since inputDirs is a newly created arrray:

      Path[] inputDirs = job.getInputPaths();

      // make sure directories are fully qualified before checking them
      for(int i=0; i < inputDirs.length; ++i) {
      if (inputDirs[i].toUri().getScheme() == null)

      { inputDirs[i] = userFileSys.makeQualified(inputDirs[i]); }

      }

      // input paths should exist.
      job.getInputFormat().validateInput(job);

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kamatsuoka Kenji Matsuoka
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: