hama-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward J. Yoon (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HAMA-855) Handling Address binding exceptions
Date Mon, 07 Apr 2014 04:48:15 GMT

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

Edward J. Yoon commented on HAMA-855:
-------------------------------------

1. You should attach the patch file instead of using comment.
2. getInt() method receives two arguments. 2nd is for when "bsp.master.port" is not set.

int defaultPort = conf.getInt("bsp.master.port", 40000);

>> In MiniBSPCluster, Master uses hard-coded 40000 port but we don't need to specify
the master port for unit test.

In my opinion, BSPMaster's port should be able to specified by user and throw the exception
if it's already in use. As I mentioned above, Please change the MiniBSPCluster.

> Handling Address binding exceptions
> -----------------------------------
>
>                 Key: HAMA-855
>                 URL: https://issues.apache.org/jira/browse/HAMA-855
>             Project: Hama
>          Issue Type: Bug
>          Components: bsp core
>    Affects Versions: 0.6.3
>            Reporter: Edward J. Yoon
>            Assignee: Edward J. Yoon
>             Fix For: 0.7.0
>
>
> Often, build fails with Address binding exceptions. We can add some re-attempt mechanism
to avoid this situations.
> https://builds.apache.org/job/Hama-trunk/245/testReport/org.apache.hama.bsp/TestBSPMasterGroomServer/testSubmitJob/
> {code}
> 14/01/21 01:15:23 ERROR bsp.GroomServer: Got fatal exception while reinitializing GroomServer:
java.net.BindException: Problem binding to vesta.apache.org/67.195.138.9:53307 : Address already
in use
> 	at org.apache.hama.ipc.Server.bind(Server.java:250)
> 	at org.apache.hama.ipc.Server$Listener.<init>(Server.java:316)
> 	at org.apache.hama.ipc.Server.<init>(Server.java:1313)
> 	at org.apache.hama.ipc.RPC$Server.<init>(RPC.java:595)
> 	at org.apache.hama.ipc.RPC.getServer(RPC.java:551)
> 	at org.apache.hama.ipc.RPC.getServer(RPC.java:538)
> 	at org.apache.hama.ipc.RPC.getServer(RPC.java:528)
> 	at org.apache.hama.bsp.GroomServer.initialize(GroomServer.java:326)
> 	at org.apache.hama.bsp.GroomServer.run(GroomServer.java:832)
> 	at java.lang.Thread.run(Thread.java:662)
> Caused by: java.net.BindException: Address already in use
> 	at sun.nio.ch.Net.bind(Native Method)
> 	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124)
> 	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
> 	at org.apache.hama.ipc.Server.bind(Server.java:248)
> 	... 9 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message