[
https://issues.apache.org/jira/browse/HADOOP-9382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14654154#comment-14654154
]
Colin Patrick McCabe commented on HADOOP-9382:
----------------------------------------------
What is the behavior supposed to be when the source is a directory, and the
destination is a file? In UNIX, a directory cannot be overwritten by a file.
{code}
cmccabe@keter:~> mkdir d
cmccabe@keter:~> touch f
cmccabe@keter:~> mv d f
mv: overwrite ‘f’? y
mv: cannot overwrite non-directory ‘f’ with directory ‘d’
cmccabe@keter:~> mv -f c b
mv: cannot overwrite non-directory ‘f’ with directory ‘d’
{code}
> Add dfs mv overwrite option
> ---------------------------
>
> Key: HADOOP-9382
> URL: https://issues.apache.org/jira/browse/HADOOP-9382
> Project: Hadoop Common
> Issue Type: Improvement
> Reporter: Keegan Witt
> Assignee: Suresh Srinivas
> Priority: Minor
> Labels: BB2015-05-TBR
> Attachments: HADOOP-9382.1.patch, HADOOP-9382.2.patch,
> HADOOP-9382.patch
>
>
> Add a -f option to allow overwriting existing destinations in dfs mv command.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)