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 "Rajiv Chittajallu (JIRA)" <ji...@apache.org> on 2009/10/09 23:03:31 UTC
[jira] Created: (HDFS-689) Destination ending with \ should be
treated as a dir
Destination ending with \ should be treated as a dir
----------------------------------------------------
Key: HDFS-689
URL: https://issues.apache.org/jira/browse/HDFS-689
Project: Hadoop HDFS
Issue Type: Bug
Affects Versions: 0.20.1
Reporter: Rajiv Chittajallu
When the destination for fs -mv and fs -cp ends with a trailing '/' the it should be treated as a directory. The command should fail if the destination directory doesn't exist.
$ cp motd t/
cp: cannot create regular file `t/': Is a directory
$ mv motd t/
mv: cannot move `motd' to `t/': Not a directory
vs
$ hadoop dfs -cp motd c/
$ hadoop dfs -ls c
Found 1 items
-rw------- 3 rajive users 206 2009-10-09 20:59 /user/rajive/c
$ hadoop dfs -mv motd t/
$ hadoop dfs -ls t
Found 1 items
-rw------- 3 rajive users 206 2009-10-09 20:47 /user/rajive/t
$
$ hadoop dfs -mkdir a
$ hadoop dfs -mv motd2 a/
$ hadoop dfs -ls a
Found 1 items
-rw------- 3 rajive users 206 2009-10-09 20:47 /user/rajive/a/motd2
$
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.