[ 
https://issues.apache.org/jira/browse/HDFS-13019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16909902#comment-16909902
 ] 

hemanthboyina commented on HDFS-13019:
--------------------------------------

[~bharatviswa] are you working on this ?

> dfs put with -f to dir with existing file in dest should return 0, not -1
> -------------------------------------------------------------------------
>
>                 Key: HDFS-13019
>                 URL: https://issues.apache.org/jira/browse/HDFS-13019
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs
>    Affects Versions: 2.7.3
>            Reporter: BRYAN T VOLD
>            Assignee: Bharat Viswanadham
>            Priority: Major
>
> When doing an hdfs dfs -put <src_dir> <dest_dir> and there are existing 
> files, the return code will be -1, which is expected.  
> When you do an hdfs dfs -put -f <src_dir> <dest_dir> (force), the error code 
> still comes back as -1, which is unexpected.  
> If you use hdfs dfs -copyFromLocal using the same directories as above, the 
> -copyFromLocal stills gives the error which is expected and when you pass -f 
> to this version of the command, the error code is 0, which I think is the 
> correct behavior and I think the hdfs dfs -put should match this.  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to