hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bharath Mundlapudi (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HADOOP-7345) listStatus for local files throws NPE instead of permission denied
Date Wed, 01 Jun 2011 21:58:47 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-7345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bharath Mundlapudi resolved HADOOP-7345.
----------------------------------------

    Resolution: Duplicate

> listStatus for local files throws NPE instead of permission denied
> ------------------------------------------------------------------
>
>                 Key: HADOOP-7345
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7345
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.23.0
>            Reporter: Daryn Sharp
>
> Calling {{fs.listStatus}} on a local directory where the user does not have permissions
generates a {{NullPointerException}}:
> {noformat}
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:1115)
> 	at org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:1150)
> 	at org.apache.hadoop.fs.ChecksumFileSystem.listStatus(ChecksumFileSystem.java:494)
> {noformat}
> FileSystem.java:
> {code}
> 1111:  private void listStatus(ArrayList<FileStatus> results, Path f,
> 1112:      PathFilter filter) throws FileNotFoundException, IOException {
> 1113:    FileStatus listing[] = listStatus(f);
> 1114:
> 1115:    for (int i = 0; i < listing.length; i++) {
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message