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

support for multiple slashes in the path separator

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 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

        Attachments

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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: