You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by pankaj jairath <pj...@yahoo-inc.com> on 2009/05/28 13:48:32 UTC
Issue with usage of fs -test
Hello,
I am facing a strange issue, where in the /fs -test -e/ fails and /fs
-ls/ succeeds to list the file. Following is the grep of such a result :
bin]$ hadoop fs -ls /projects/myproject/xxxx/yyyy/zzzz.done
Found 1 items
-rw------- 3 user hdfs 0 2009-03-19 22:28
/projects/myproject/xxxx/yyyy/zzzz.done
[me@mymachine bin]$ echo $?
0
[me@mymachine bin]$ hadoop fs -test -e /projects/myproject/xxxx/yyyy/zzzz.done
[me@mymachine bin]$ echo $?
1
What is the cause of such a behaviour, any pointers would much be appreciated. (HADOOP_CONF_DIR and HADOOP_HOME are set correctly at env vars)
Thanks
Pankaj
Re: Issue with usage of fs -test
Posted by pankaj jairath <pj...@yahoo-inc.com>.
Thanks, Koji. This is the issue I am facing and I have been using
version 0.18.x.
-/Pankaj
Koji Noguchi wrote:
> Maybe
> https://issues.apache.org/jira/browse/HADOOP-3792 ?
>
> Koji
>
> -----Original Message-----
> From: pankaj jairath [mailto:pjairath@yahoo-inc.com]
> Sent: Thursday, May 28, 2009 4:49 AM
> To: core-user@hadoop.apache.org
> Subject: Issue with usage of fs -test
>
> Hello,
>
> I am facing a strange issue, where in the /fs -test -e/ fails and /fs
> -ls/ succeeds to list the file. Following is the grep of such a result
> :
>
> bin]$ hadoop fs -ls /projects/myproject/xxxx/yyyy/zzzz.done
> Found 1 items
> -rw------- 3 user hdfs 0 2009-03-19 22:28
> /projects/myproject/xxxx/yyyy/zzzz.done
> [me@mymachine bin]$ echo $?
> 0
> [me@mymachine bin]$ hadoop fs -test -e
> /projects/myproject/xxxx/yyyy/zzzz.done
> [me@mymachine bin]$ echo $?
> 1
>
>
> What is the cause of such a behaviour, any pointers would much be
> appreciated. (HADOOP_CONF_DIR and HADOOP_HOME are set correctly at env
> vars)
>
>
> Thanks
> Pankaj
>
>
>
>
RE: Issue with usage of fs -test
Posted by Koji Noguchi <kn...@yahoo-inc.com>.
Maybe
https://issues.apache.org/jira/browse/HADOOP-3792 ?
Koji
-----Original Message-----
From: pankaj jairath [mailto:pjairath@yahoo-inc.com]
Sent: Thursday, May 28, 2009 4:49 AM
To: core-user@hadoop.apache.org
Subject: Issue with usage of fs -test
Hello,
I am facing a strange issue, where in the /fs -test -e/ fails and /fs
-ls/ succeeds to list the file. Following is the grep of such a result
:
bin]$ hadoop fs -ls /projects/myproject/xxxx/yyyy/zzzz.done
Found 1 items
-rw------- 3 user hdfs 0 2009-03-19 22:28
/projects/myproject/xxxx/yyyy/zzzz.done
[me@mymachine bin]$ echo $?
0
[me@mymachine bin]$ hadoop fs -test -e
/projects/myproject/xxxx/yyyy/zzzz.done
[me@mymachine bin]$ echo $?
1
What is the cause of such a behaviour, any pointers would much be
appreciated. (HADOOP_CONF_DIR and HADOOP_HOME are set correctly at env
vars)
Thanks
Pankaj