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

FSShell put or CopyFromLocal incorrectly treats "."

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.14.1
    • None
    • fs
    • 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
          Christopher Douglas

        Issue Links

          Activity

            People

              cdouglas Christopher Douglas
              shv Konstantin Shvachko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: