hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Patrick McCabe (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-9382) Add dfs mv overwrite option
Date Tue, 04 Aug 2015 18:56:05 GMT

    [ 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.

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’

> 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

View raw message