[ 
https://issues.apache.org/jira/browse/HADOOP-5687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12699809#action_12699809
 ] 

Konstantin Shvachko commented on HADOOP-5687:
---------------------------------------------

Philip,
# I think NPE related to authority = null should be handled in 
{{NetUtils.createSocketAddr()}}. This is a general problem not just name-node's.
# Checking that URI has the hdfs scheme is basically an assert, otherwise this 
would not be called. But if you want it, could you please
#- use {{HDFS_URI_SCHEME}} instead of {{DFS_URI_SCHEME}},
#- and place it in {{FSContants}} rather than {{DistributedFileSystem}}

> Hadoop NameNode throws NPE if fs.default.name is the default value
> ------------------------------------------------------------------
>
>                 Key: HADOOP-5687
>                 URL: https://issues.apache.org/jira/browse/HADOOP-5687
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>            Reporter: Philip Zeyliger
>            Priority: Minor
>         Attachments: HADOOP-5687.patch, HADOOP-5687.patch
>
>
> Throwing NPE is confusing; instead, an exception with a useful string 
> description could be thrown instead.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to