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

hadoop dfs -copyToLocal creates zero byte files, when source file does not exists

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.15.2
    • Fix Version/s: 0.16.0
    • Component/s: None
    • Labels:
      None

      Description

      hadoop dfs -copyToLocal with an no existing source file creates a zero byte destination file. It should throw an error message indicating the source file does not exists.

      [lohit@ hadoop-trunk]$ hadoop dfs -get nosuchfile nosuchfile
      [lohit@ hadoop-trunk]$ ls -l nosuchfile 
      -rw-r--r--  1 lohit users 0 Jan 11 21:58 nosuchfile
      [lohit@ hadoop-trunk]$
      

        Attachments

        1. HADOOP_2582_2.patch
          2 kB
          Lohit Vijaya Renu
        2. HADOOP_2582_1.patch
          2 kB
          Lohit Vijaya Renu

          Activity

            People

            • Assignee:
              lohit Lohit Vijaya Renu
              Reporter:
              lohit Lohit Vijaya Renu
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: