[ 
https://issues.apache.org/jira/browse/HADOOP-2601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Konstantin Shvachko updated HADOOP-2601:
----------------------------------------

    Attachment: TestThrghputBenchZeroPort.patch

I agree. Here is the patch to fix it.

> TestNNThroughput should not use a fixed namenode port
> -----------------------------------------------------
>
>                 Key: HADOOP-2601
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2601
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.15.2
>            Reporter: Hairong Kuang
>            Assignee: Konstantin Shvachko
>             Fix For: 0.16.0
>
>         Attachments: TestThrghputBenchZeroPort.patch
>
>
> TestNNThroughput failed with the following error: 
> Address already in use
> java.net.BindException: Address already in use
>         at java.net.PlainSocketImpl.socketBind(Native Method)
>         at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
>         at java.net.ServerSocket.bind(ServerSocket.java:319)
>         at java.net.ServerSocket.<init>(ServerSocket.java:185)
>         at 
> org.mortbay.util.ThreadedServer.newServerSocket(ThreadedServer.java:391)
>         at org.mortbay.util.ThreadedServer.open(ThreadedServer.java:477)
>         at org.mortbay.util.ThreadedServer.start(ThreadedServer.java:503)
>         at org.mortbay.http.SocketListener.start(SocketListener.java:203)
>         at org.mortbay.http.HttpServer.doStart(HttpServer.java:761)
>         at org.mortbay.util.Container.start(Container.java:72)
>         at 
> org.apache.hadoop.mapred.StatusHttpServer.start(StatusHttpServer.java:182)
>         at 
> org.apache.hadoop.dfs.FSNamesystem.initialize(FSNamesystem.java:273)
>         at org.apache.hadoop.dfs.FSNamesystem.<init>(FSNamesystem.java:223)
>         at org.apache.hadoop.dfs.NameNode.initialize(NameNode.java:129)
>         at org.apache.hadoop.dfs.NameNode.<init>(NameNode.java:174)
>         at org.apache.hadoop.dfs.NameNode.<init>(NameNode.java:160)
>         at org.apache.hadoop.dfs.NameNode.createNameNode(NameNode.java:849)
>         at 
> org.apache.hadoop.dfs.NNThroughputBenchmark.<init>(NNThroughputBenchmark.java:57)
>         at 
> org.apache.hadoop.dfs.NNThroughputBenchmark.runBenchmark(NNThroughputBenchmark.java:752)
>         at 
> org.apache.hadoop.dfs.TestNNThroughputBenchmark.testNNThroughput(TestNNThroughputBenchmark.java:15)

-- 
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