[
https://issues.apache.org/jira/browse/HADOOP-8504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396352#comment-13396352
]
Ravi Prakash commented on HADOOP-8504:
--------------------------------------
Sorry I've been missing the past few days because of the summit etc. It was
good to finally meet you all in person
I believe any fsimage with security turned on should be able let you reproduce
the problem. I investigated briefly and the problem is that the rules (on
KerberosName.java:371) didn't get loaded. Its null. TestOfflineEditsViewer
worked just fine.
In case you haven't had a chance to look at it yet, please assign the JIRA to
me and I ought to be able to come up with a patch soon.
> OfflineImageViewer throws an NPE
> --------------------------------
>
> Key: HADOOP-8504
> URL: https://issues.apache.org/jira/browse/HADOOP-8504
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 0.23.3
> Reporter: Ravi Prakash
> Assignee: Colin Patrick McCabe
>
> Courtesy [~mithun]
> Exception in thread "main" java.lang.NullPointerException
> at
> org.apache.hadoop.security.authentication.util.KerberosName.getShortName(KerberosName.java:371)
> at org.apache.hadoop.security.User.<init>(User.java:48)
> at org.apache.hadoop.security.User.<init>(User.java:43)
> at
> org.apache.hadoop.security.UserGroupInformation.createRemoteUser(UserGroupInformation.java:857)
> at
> org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier.getUser(AbstractDelegationTokenIdentifier.java:91)
> at
> org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier.toString(DelegationTokenIdentifier.java:61)
> at
> org.apache.hadoop.hdfs.tools.offlineImageViewer.ImageLoaderCurrent.processDelegationTokens(ImageLoaderCurrent.java:222)
> at
> org.apache.hadoop.hdfs.tools.offlineImageViewer.ImageLoaderCurrent.loadImage(ImageLoaderCurrent.java:185)
> at
> org.apache.hadoop.hdfs.tools.offlineImageViewer.OfflineImageViewer.go(OfflineImageViewer.java:129)
> at
> org.apache.hadoop.hdfs.tools.offlineImageViewer.OfflineImageViewer.main(OfflineImageViewer.java:250)
--
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