[
https://issues.apache.org/jira/browse/HADOOP-7661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13109802#comment-13109802
]
John George commented on HADOOP-7661:
-------------------------------------
bq. Why not? From a cursory examination of the code, it looks like trunk should
have the exact same issue.
MAPREDUCE-2780 changed the behavior of buildDTServiceName() which started
throwing an NPE for filesystems without valid authority. Since MAPREDUCE-2780
is not in trunk yet, the behavior is not there yet. The fix was to let
FileSystem without a valid URI override the getCannonocalServiceName() eg:
HADOOP-7602
> FileSystem.getCanonicalServiceName throws NPE for any file system uri that
> doesn't have an authority.
> -----------------------------------------------------------------------------------------------------
>
> Key: HADOOP-7661
> URL: https://issues.apache.org/jira/browse/HADOOP-7661
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 0.20.205.0
> Reporter: Jitendra Nath Pandey
> Assignee: Jitendra Nath Pandey
> Fix For: 0.20.205.0
>
> Attachments: HADOOP-7661.20s.1.patch, HADOOP-7661.20s.2.patch,
> HADOOP-7661.20s.3.patch
>
>
> FileSystem.getCanonicalServiceName throws NPE for any file system uri that
> doesn't have an authority.
> ....
> java.lang.NullPointerException
> at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:138)
> at
> org.apache.hadoop.security.SecurityUtil.buildDTServiceName(SecurityUtil.java:261)
> at
> org.apache.hadoop.fs.FileSystem.getCanonicalServiceName(FileSystem.java:174)
> ....
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira