Hadoop Common
  1. Hadoop Common
  2. HADOOP-8176

Disambiguate the destination of FsShell copies

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.2, 0.24.0
    • Fix Version/s: 0.23.2
    • Component/s: fs
    • Labels:
      None

      Description

      The copy commands currently do not provide a way to disambiguate the expected destination of a copy. Ex.
      fs -put myfile path/mydir

      If "mydir" is an existing directory, then the copy produces path/mydir/file. If "mydir" does not exist at all, the copy produces path/mydir. The file has unexpectedly been renamed to what was expected to be a directory! It's standard unix shell behavior, but it lacks a special trait.

      Unix allows a user to disambiguate their intent by allowing path/mydir/ or path/mydir/. to mean "mydir" is always be treated as a directory. If the copy succeeds, it will always be called path/mydir/myfile.

        Activity

        Daryn Sharp created issue -
        Daryn Sharp made changes -
        Field Original Value New Value
        Attachment HADOOP-8176.patch [ 12518582 ]
        Daryn Sharp made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Target Version/s 0.23.2, 0.24.0 [ 12319855, 12317652 ] 0.24.0, 0.23.2 [ 12317652, 12319855 ]
        Robert Joseph Evans made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Target Version/s 0.23.2, 0.24.0 [ 12319855, 12317652 ] 0.24.0, 0.23.2 [ 12317652, 12319855 ]
        Fix Version/s 0.23.2 [ 12319855 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Daryn Sharp
            Reporter:
            Daryn Sharp
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development