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

The Glob methods in FileContext doe not deal with URIs correctly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.21.0
    • Fix Version/s: 0.21.0
    • Component/s: fs
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The glob methods in FileContext were copied from FileSystem where they dealt with the a single filesystem.
      While they were extended to fit in FileContext they don't seem to deal with URI pathnames correctly.

      For example the following two lines in FileContext may be the source of the problem - the scheme and authority seem to be
      ignored beyond these points.

      line 1013: String filename = pathPattern.toUri().getPath();
      line 1035: String filename = pathPattern.toUri().getPath();

        Attachments

        1. HADOOP-6286-4.patch
          4 kB
          Boris Shkolnik
        2. HADOOP-6286-3.patch
          4 kB
          Boris Shkolnik
        3. HADOOP-6286-2.patch
          5 kB
          Boris Shkolnik
        4. HADOOP-6286-1.patch
          2 kB
          Boris Shkolnik
        5. HADOOP-6286-1.patch
          2 kB
          Boris Shkolnik
        6. HADOOP-6286.patch
          1 kB
          Boris Shkolnik

          Activity

            People

            • Assignee:
              boryas Boris Shkolnik
              Reporter:
              sanjay.radia Sanjay Radia
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: