hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-5461) Incorrect exit code from "hadoop dfs -mv"
Date Wed, 11 Mar 2009 19:04:50 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-5461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12680987#action_12680987
] 

Tsz Wo (Nicholas), SZE commented on HADOOP-5461:
------------------------------------------------

{quote}
$ hadoop dfs -mv /user/dfsload/does-not-exist/* /user/dfsload/.Trash
$ echo $?
0
{quote}
I guess the command did complete successfully since there is no error message like "No match"
or "No such file or directory".

Tested -mv with 0.20.  I cannot reproduce the problem reported.
{noformat}
bash-3.2$ ./bin/hadoop version
Hadoop 0.20.1-dev
Subversion https://svn.apache.org/repos/asf/hadoop/core/branches/branch-0.20 -r 751873
Compiled by tsz on Wed Mar 11 11:58:50 PDT 2009
bash-3.2$ ./bin/hadoop dfs -ls /user/    
Found 1 items
drwxr-xr-x   - tsz supergroup          0 2009-03-11 12:00 /user/tsz
bash-3.2$ ./bin/hadoop dfs -mv /user/a/ b
mv: /user/a: No such file or directory
bash-3.2$ echo $?
255
{noformat}

> Incorrect exit code from "hadoop dfs -mv"
> -----------------------------------------
>
>                 Key: HADOOP-5461
>                 URL: https://issues.apache.org/jira/browse/HADOOP-5461
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.20.0
>            Reporter: Ramesh Sekaran
>            Priority: Minor
>
> In hadoop 0.17 & 0.18 the behavior of "hadoop dfs -mv <invalid src dir>/* <target
dir>" is as shown below.
> $  hadoop dfs -mv /user/dfsload/does-not-exist/* /user/dfsload/.Trash
> hadoop: No match.
> $ echo $?
> 1
> The same command when issued to hadoop 0.20 cluster, has a "0" exit code which is incorrect.
> $  hadoop dfs -mv /user/dfsload/does-not-exist/* /user/dfsload/.Trash
> $ echo $?
> 0
> The exit code must be non-zero in this case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message