Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-1916

FSShell put or CopyFromLocal incorrectly treats "."

    Details

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

      Description

      The following dfs shell command

      bin/hadoop dfs -put README.txt .
      

      results in creating a file /user/<user name> with the contents of README.txt.
      A correct behavior would be creating a directory and a file in it: /user/<user name>/README.txt
      The put command works correctly if /user/<user name> already exists.
      So the following sequence of command leads to the desired result:

      bin/hadoop dfs -mkdir .
      bin/hadoop dfs -put README.txt .
      

        Attachments

        1. 1916.patch
          1 kB
          Chris Douglas

          Issue Links

            Activity

              People

              • Assignee:
                chris.douglas Chris Douglas
                Reporter:
                shv Konstantin Shvachko
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: