FAQ
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 $?

[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

Search Discussions

  • Koji Noguchi at May 28, 2009 at 12:01 pm
    Maybe
    https://issues.apache.org/jira/browse/HADOOP-3792 ?

    Koji

    -----Original Message-----
    From: pankaj jairath
    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 $?

    [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
  • Pankaj jairath at May 28, 2009 at 12:31 pm
    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
    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 $?

    [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


Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-user @
categorieshadoop
postedMay 28, '09 at 11:49a
activeMay 28, '09 at 12:31p
posts3
users2
websitehadoop.apache.org...
irc#hadoop

2 users in discussion

Pankaj jairath: 2 posts Koji Noguchi: 1 post

People

Translate

site design / logo © 2022 Grokbase