Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-2450

Only complete hostname is supported to access data via hdfs://

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.20.205.0
    • Fix Version/s: 1.0.0
    • Component/s: None
    • Labels:
      None
    • Target Version/s:

      Description

      If my complete hostname is host1.abc.xyz.com, only complete hostname must be used to access data via hdfs://

      I am running following in .20.205 Client to get data from .20.205 NN (host1)
      $hadoop dfs -copyFromLocal /etc/passwd hdfs://host1/tmp
      copyFromLocal: Wrong FS: hdfs://host1/tmp, expected: hdfs://host1.abc.xyz.com
      Usage: java FsShell [-copyFromLocal <localsrc> ... <dst>]

      $hadoop dfs -copyFromLocal /etc/passwd hdfs://host1.abc/tmp/
      copyFromLocal: Wrong FS: hdfs://host1.blue/tmp/1, expected: hdfs://host1.abc.xyz.com
      Usage: java FsShell [-copyFromLocal <localsrc> ... <dst>]

      $hadoop dfs -copyFromLocal /etc/passwd hftp://host1.abc.xyz/tmp/
      copyFromLocal: Wrong FS: hdfs://host1.blue/tmp/1, expected: hdfs://host1.abc.xyz.com
      Usage: java FsShell [-copyFromLocal <localsrc> ... <dst>]

      Only following is supported
      $hadoop dfs -copyFromLocal /etc/passwd hdfs://host1.abc.xyz.com/tmp/

      1. HDFS-2450.patch
        14 kB
        Daryn Sharp
      2. HDFS-2450-1.patch
        10 kB
        Daryn Sharp
      3. HDFS-2450-2.patch
        11 kB
        Daryn Sharp
      4. HDFS-2450-3.patch
        23 kB
        Daryn Sharp
      5. HDFS-2450-4.patch
        29 kB
        Daryn Sharp
      6. HDFS-2450-5.patch
        30 kB
        Daryn Sharp
      7. IP vs. Hostname.pdf
        98 kB
        Daryn Sharp

        Issue Links

          Activity

            People

            • Assignee:
              Daryn Sharp
              Reporter:
              Rajit Saha
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development