You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Konstantin Shvachko (JIRA)" <ji...@apache.org> on 2009/11/25 23:39:39 UTC

[jira] Commented: (HADOOP-6386) NameNode's HttpServer can't instantiate InetSocketAddress: IllegalArgumentException is thrown

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

Konstantin Shvachko commented on HADOOP-6386:
---------------------------------------------

Not sure this is going to help. From the printout we know that the port you are checking in the if statement is not -1, so the workaround code is not called. If I don't miss something.
I guess we can check {{webServer.isStarted()}} before returning from {{HttpServer.start()}}.

> NameNode's HttpServer can't instantiate InetSocketAddress: IllegalArgumentException is thrown
> ---------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-6386
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6386
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 0.20.2, 0.21.0, 0.22.0
>         Environment: Apache Hudson build machine
>            Reporter: Konstantin Boudnik
>            Assignee: Konstantin Boudnik
>            Priority: Blocker
>         Attachments: HADOOP-6386-0.20.patch, HADOOP-6386.patch, hdfs-771.patch, hdfs-771.patch, testEditLog.html
>
>
> In an execution of a tests the following exception has been thrown:
> {noformat}
> Error Message
> port out of range:-1
> Stacktrace
> java.lang.IllegalArgumentException: port out of range:-1
> 	at java.net.InetSocketAddress.<init>(InetSocketAddress.java:118)
> 	at org.apache.hadoop.hdfs.server.namenode.NameNode.startHttpServer(NameNode.java:371)
> 	at org.apache.hadoop.hdfs.server.namenode.NameNode.activate(NameNode.java:313)
> 	at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:304)
> 	at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:410)
> 	at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:404)
> 	at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1211)
> 	at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:287)
> 	at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:131)
> 	at org.apache.hadoop.hdfs.server.namenode.TestEditLog.testEditLog(TestEditLog.java:92)
> {noformat}

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