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

Code to qualify inputDirs doesn't affect path validation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.10.1
    • 0.11.0
    • fs
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: