Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-2450

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

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.20.205.0
    • 1.0.0
    • None
    • None

    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/

      Attachments

        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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            daryn Daryn Sharp
            rajsaha Rajit Saha
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment