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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7.2
    • 2.8.0, 2.7.3, 3.0.0-alpha1
    • None
    • None
    • 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

              kshukla Kuhu Shukla
              kshukla Kuhu Shukla
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: