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

        Issue Links

          Activity

          Matt Foley made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Matt Foley made changes -
          Fix Version/s 0.20.205.1 [ 12318243 ]
          Daryn Sharp made changes -
          Link This issue relates to HADOOP-7808 [ HADOOP-7808 ]
          Daryn Sharp made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Daryn Sharp made changes -
          Attachment HDFS-2450-5.patch [ 12501178 ]
          Daryn Sharp made changes -
          Attachment HDFS-2450-4.patch [ 12501154 ]
          Daryn Sharp made changes -
          Attachment HDFS-2450-3.patch [ 12500997 ]
          Daryn Sharp made changes -
          Attachment HDFS-2450-2.patch [ 12500766 ]
          Daryn Sharp made changes -
          Attachment IP vs. Hostname.pdf [ 12500252 ]
          Daryn Sharp made changes -
          Attachment HDFS-2450-1.patch [ 12499910 ]
          Matt Foley made changes -
          Target Version/s 0.20.205.1 [ 12318243 ]
          Daryn Sharp made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Daryn Sharp made changes -
          Attachment HDFS-2450.patch [ 12499612 ]
          Daryn Sharp made changes -
          Field Original Value New Value
          Assignee Daryn Sharp [ daryn ]
          Rajit Saha created issue -

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development