You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Matt Foley (Updated) (JIRA)" <ji...@apache.org> on 2011/10/06 01:24:31 UTC
[jira] [Updated] (HDFS-2358) NPE when the default filesystem's uri
has no authority
[ https://issues.apache.org/jira/browse/HDFS-2358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matt Foley updated HDFS-2358:
-----------------------------
Resolution: Fixed
Fix Version/s: 0.20.205.0
Release Note: Give meaningful error message instead of NPE.
Hadoop Flags: Reviewed
Status: Resolved (was: Patch Available)
+1 for code review. Committed to both 0.20-sec and 0.20.205.0. Thanks, Daryn!
> NPE when the default filesystem's uri has no authority
> ------------------------------------------------------
>
> Key: HDFS-2358
> URL: https://issues.apache.org/jira/browse/HDFS-2358
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: name-node
> Affects Versions: 0.20.204.0
> Reporter: Rajit Saha
> Assignee: Daryn Sharp
> Fix For: 0.20.205.0
>
> Attachments: HDFS-2358.patch
>
>
> in core-site.xml if default filesystem's uri is misconfigured , NN does not come up and in NN shows NPE
> java.lang.NullPointerException
> at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:142)
> at org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:195)
> at org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:225)
> at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:259)
> at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:458)
> at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1226)
> at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1235)
> It is better to give meaningful error messege than NPE
--
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