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

support for multiple slashes in the path separator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 0.23.0
    • None
    • None
    • Linux running JDK 1.6

    • 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--20110719.txt
          4 kB
          Andrew Look
        2. HADOOP-7418.txt
          4 kB
          Andrew Look
        3. HADOOP-7418.txt
          3 kB
          Andrew Look
        4. HDFS-1460.txt
          3 kB
          Andrew Look
        5. HDFS-1460.txt
          3 kB
          Andrew Look

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sudhan65 Sudharsan Sampath
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: