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

Fsshell mv fails if port usage doesn't match in src and destination paths

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.2
    • Fix Version/s: 2.8.0, 2.7.3, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      If one of the src or destination fs URIs does not contain the port while the other one does, the MoveCommands#processPath preemptively throws PathIOException "Does not match target filesystem".

      eg.

      -bash-4.1$ hadoop fs -mv hdfs://localhost:8020/tmp/foo3 hdfs://localhost/tmp/foo4
      mv: `hdfs://localhost:8020:8020/tmp/foo3': Does not match target filesystem
      

      This is due to strict string check in processPath

        Attachments

        1. HDFS-10239.001.patch
          3 kB
          Kuhu Shukla
        2. HDFS-10239.002.patch
          3 kB
          Kuhu Shukla

        Issue Links

          Activity

            People

            • Assignee:
              kshukla Kuhu Shukla
              Reporter:
              kshukla Kuhu Shukla

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment