hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "lohit vijayarenu (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-2582) hadoop dfs -copyToLocal creates zero byte files, when source file does not exists
Date Sat, 12 Jan 2008 01:15:34 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-2582?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

lohit vijayarenu updated HADOOP-2582:
-------------------------------------

    Attachment: HADOOP_2582_2.patch

Thanks Raghu, I have attached another patch which fixes FileUtil. Now we catch both -get and
-put errors. 

> hadoop dfs -copyToLocal creates zero byte files, when source file does not exists 
> ----------------------------------------------------------------------------------
>
>                 Key: HADOOP-2582
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2582
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.15.2
>            Reporter: lohit vijayarenu
>         Attachments: HADOOP_2582_1.patch, HADOOP_2582_2.patch
>
>
> 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.
> {noformat}
> [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]$
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message