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 "Mitesh Singh Jat (Created) (JIRA)" <ji...@apache.org> on 2012/02/24 07:02:48 UTC

[jira] [Created] (HDFS-3007) hadoop fs -ls /a/b/*/d.txt gives EXECUTE AccessControlException, if * matches a file

hadoop fs -ls /a/b/*/d.txt gives EXECUTE AccessControlException, if * matches a file
------------------------------------------------------------------------------------

                 Key: HDFS-3007
                 URL: https://issues.apache.org/jira/browse/HDFS-3007
             Project: Hadoop HDFS
          Issue Type: Bug
    Affects Versions: 0.20.205.0, 0.20.204.0, 0.20.2
            Reporter: Mitesh Singh Jat


The wildcard {{*}} is problematic for {{hadoop fs -ls}} in some cases. For example, hadoop give execution error on files
if any file is present for {{*}}.

{noformat}
$ hadoop fs -mkdir /user/mitesh/a/b/c/
$ hadoop fs -touchz /user/mitesh/a/b/file.txt
$ hadoop fs -touchz /user/mitesh/a/b/c/d.txt
$ hadoop fs -ls /user/mitesh/a/b/*/d.txt
ls: org.apache.hadoop.security.AccessControlException: Permission denied: user=mitesh, access=EXECUTE, inode="file.txt":mitesh:users:rw-------
{noformat}

As a workaround, some unique prefix(not matching with file), can be used with *
{noformat}
$ hadoop fs -ls /user/mitesh/a/b/c*/d.txt
Found 1 items
-rw-------   3 mitesh users          0 2012-02-24 05:53 /user/mitesh/a/b/c/d.txt
{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira