hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jing Zhao (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-5265) Namenode fails to start when dfs.https.port is unspecified
Date Thu, 26 Sep 2013 17:50:04 GMT

    [ https://issues.apache.org/jira/browse/HDFS-5265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13779015#comment-13779015
] 

Jing Zhao commented on HDFS-5265:
---------------------------------

Good catch [~wheat9]! Since you're in this area, maybe you can also remove the redundant "if
(certSSL)" in the same method:

{code}
    if (certSSL) {
      boolean needClientAuth = conf.getBoolean("dfs.https.need.client.auth", false);
      InetSocketAddress secInfoSocAddr = NetUtils.createSocketAddr(infoHost + ":" + conf.get(
        DFSConfigKeys.DFS_NAMENODE_HTTPS_PORT_KEY, infoHost + ":" + 0));
      Configuration sslConf = new Configuration(false);
      if (certSSL) {
        sslConf.addResource(conf.get(DFSConfigKeys.DFS_SERVER_HTTPS_KEYSTORE_RESOURCE_KEY,
                                     "ssl-server.xml"));
      }
    ....
{code}
                
> Namenode fails to start when dfs.https.port is unspecified
> ----------------------------------------------------------
>
>                 Key: HDFS-5265
>                 URL: https://issues.apache.org/jira/browse/HDFS-5265
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Haohui Mai
>            Assignee: Haohui Mai
>         Attachments: HDFS-5265.000.patch
>
>
> Namenode get the wrong address when dfs.https.port is unspecified.
> java.lang.IllegalArgumentException: Does not contain a valid host:port authority: 0.0.0.0:0.0.0.0:0
>         at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:212)
>         at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:163)
>         at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:152)
>         at org.apache.hadoop.hdfs.server.namenode.NameNodeHttpServer.start(NameNodeHttpServer.java:102)
>         at org.apache.hadoop.hdfs.server.namenode.NameNode.startHttpServer(NameNode.java:633)
>         at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:490)
>         at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:691)
>         at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:676)
>         at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1265)
>         at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1331)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message