hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allen Wittenauer (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-452) Fs -count throws Access Control Exception when restricted acess directories are present in the user's directory .
Date Wed, 23 Jul 2014 18:31:40 GMT

    [ https://issues.apache.org/jira/browse/HDFS-452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14072095#comment-14072095
] 

Allen Wittenauer commented on HDFS-452:
---------------------------------------

>From trunk as of 8a795812e79033cb5b91389cc0e7e110deacbe0e

{code}
hdfs dfs -count /
count: Permission denied: user=root, access=READ_EXECUTE, inode="/user":aw:hdfs:drwx------


hdfs dfs -du /
du: Permission denied: user=root, access=READ_EXECUTE, inode="/copy":aw:hdfs:drwxr-x---
du: Permission denied: user=root, access=READ_EXECUTE, inode="/system":aw:hdfs:drwxr-x---
du: Permission denied: user=root, access=READ_EXECUTE, inode="/user":aw:hdfs:drwx------
0  /benchmarks

{code}



> Fs -count throws Access Control Exception when restricted acess directories are present
in the user's directory  . 
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-452
>                 URL: https://issues.apache.org/jira/browse/HDFS-452
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 0.20.1
>            Reporter: Ravi Phulari
>              Labels: newbie
>
> If there are any directories  with restricted access to user are present  in users directory
then fs -count  operation on users directory throws  Access control exception .
> e.g 
> {code}
> [rphulari@some-host ~]$ hadoop fs -ls /user/ | grep rphulari
> drwxr--r--   - rphulari    users            0 2009-06-09 22:05 /user/rphulari
> [rphulari@some-host ~]$ hadoop fs -ls
> Found 3 items
> drwx------   - hdfs     users          0 2009-04-17 01:11 /user/rphulari/temp
> drwxr--r--   - rphulari users          0 2009-05-06 22:02 /user/rphulari/temp2
> -rw-r--r--   3 rphulari users          0 2009-05-06 22:11 /user/rphulari/test
> [rphulari@some-host ~]$ hadoop fs -count /user/rphulari
> count: org.apache.hadoop.security.AccessControlException: Permission denied: user=rphulari,
access=READ_EXECUTE, inode="temp":hdfs:users:rwx------
> {code}
> Ideal out put  should be quota information about user owned dir/files and  error notification
about files/dir which are not owned by user.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message