hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-5512) CacheAdmin -listPools fails with NPE when user lacks permissions to view all pools
Date Tue, 19 Nov 2013 03:37:29 GMT

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

Hudson commented on HDFS-5512:
------------------------------

SUCCESS: Integrated in Hadoop-trunk-Commit #4755 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/4755/])
HDFS-5512. CacheAdmin -listPools fails with NPE when user lacks permissions to view all pools
(awang via cmccabe) (cmccabe: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1543293)
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/CacheAdmin.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/TableListing.java


> CacheAdmin -listPools fails with NPE when user lacks permissions to view all pools
> ----------------------------------------------------------------------------------
>
>                 Key: HDFS-5512
>                 URL: https://issues.apache.org/jira/browse/HDFS-5512
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: caching, tools
>    Affects Versions: 3.0.0
>            Reporter: Stephen Chu
>            Assignee: Andrew Wang
>             Fix For: 3.0.0
>
>         Attachments: hdfs-5512-1.patch
>
>
> https://issues.apache.org/jira/browse/HDFS-5471 (CacheAdmin -listPools fails when user
lacks permissions to view all pools) was recently resolved, but on a build with this fix,
I am running into another error when using cacheadmin -listPools.
> Now, when the user does not have permissions to view all the pools, the cacheadmin -listPools
command will throw a NullPointerException.
> On a system with a single pool "root" with a mode of 750, I see this as user schu:
> {code}
> [schu@hdfs-c5-nfs ~]$ hdfs cacheadmin -listPools
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.hadoop.hdfs.tools.CacheAdmin$ListCachePoolsCommand.run(CacheAdmin.java:745)
> 	at org.apache.hadoop.hdfs.tools.CacheAdmin.run(CacheAdmin.java:82)
> 	at org.apache.hadoop.hdfs.tools.CacheAdmin.main(CacheAdmin.java:87)
> {code}
> After we modify the root pool to 755, then -listPools works properly.
> {code}
> [schu@hdfs-c5-nfs ~]$ hdfs cacheadmin -listPools
> Found 1 result.
> NAME  OWNER  GROUP  MODE       WEIGHT 
> root  root   root   rwxr-xr-x  100    
> [schu@hdfs-c5-nfs ~]$ 
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message