Hadoop Common
  1. Hadoop Common
  2. HADOOP-7418

support for multiple slashes in the path separator

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Duplicate
    • Affects Version/s: 0.23.0
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      Linux running JDK 1.6

    • Tags:
      Path issue

      Description

      the parsing of the input path string to identify the uri authority conflicts with the file system paths. For instance the following is a valid path in both the linux file system and the hdfs.
      //user/directory1//directory2.

      While this works perfectly fine in the command line for manipulating hdfs, the same fails when specified as the input path for a mapper class with the following expcetion.

      Exception in thread "main" java.net.UnknownHostException: unknown host: user
      at org.apache.hadoop.ipc.Client$Connection.<init>(Client.java:195)

      as the org.apache.hadoop.fs.Path class assumes the string that follows the '//' to be an uri authority

      1. HDFS-1460.txt
        3 kB
        Andrew Look
      2. HDFS-1460.txt
        3 kB
        Andrew Look
      3. HADOOP-7418--20110719.txt
        4 kB
        Andrew Look
      4. HADOOP-7418.txt
        3 kB
        Andrew Look
      5. HADOOP-7418.txt
        4 kB
        Andrew Look

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Sudharsan Sampath
            • Votes:
              1 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development