You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "BRYAN T VOLD (JIRA)" <ji...@apache.org> on 2018/01/12 20:41:00 UTC
[jira] [Created] (HDFS-13019) dfs put with -f to dir with existing
file in dest should return 0, not -1
BRYAN T VOLD created HDFS-13019:
-----------------------------------
Summary: 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
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
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org