[
https://issues.apache.org/jira/browse/HADOOP-8054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daryn Sharp updated HADOOP-8054:
--------------------------------
Attachment: HADOOP-8054.patch
Ran into issues simply propagating the {{setConf}}. I considered having RLFS's
{{setConf}} or ctor call its own {{initialize}} since it has a hardcoded uri,
but that causes problems with unchecked exceptions.
So, what I've done is have {{FilterFileSystem#initialize}} call {{initialize}}
on its embedded fs iff it has a null conf (ie. hasn't been initialized). Not
perfect, but should restore former behavior for existing filesystems.
> NPE with FilterFileSystem
> -------------------------
>
> Key: HADOOP-8054
> URL: https://issues.apache.org/jira/browse/HADOOP-8054
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Affects Versions: 0.23.1
> Reporter: Amareshwari Sriramadasu
> Assignee: Daryn Sharp
> Priority: Critical
> Attachments: HADOOP-8054.patch, HADOOP-8054.patch
>
>
> While running Hive tests, I'm seeing the following exception with 0.23.1,
> {noformat}
> ava.lang.NullPointerException
> at
> org.apache.hadoop.fs.FileSystem.getDefaultBlockSize(FileSystem.java:1901)
> at
> org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:447)
> at
> org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:351)
> at
> org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:351)
> at
> org.apache.hadoop.fs.ProxyFileSystem.getFileStatus(ProxyFileSystem.java:247)
> at
> org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:351)
> at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1165)
> at org.apache.hadoop.fs.FileUtil.checkDest(FileUtil.java:390)
> at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:242)
> at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:232)
> {noformat}
> Did not see this with 0.23.0, though.
--
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