Prabhu Joseph created TWILL-157:
-----------------------------------
Summary: ApplicationMasterService does not reconnect to RM when it
restarts
Key: TWILL-157
URL: https://issues.apache.org/jira/browse/TWILL-157
Project: Apache Twill
Issue Type: Bug
Affects Versions: 0.6.0-incubating
Reporter: Prabhu Joseph
When we run a YARN job with the ApplicationMaster developed using Twill, the
job is failing during the restart of RM with Connectionrefused. We expect it to
reconnect like MRAppMaster.
ready tried 6 time(s); retry policy is
RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/12/21 02:41:07 INFO ipc.Client: Retrying connect to server:
lgpbd1610.gso.aexp.com/10.22.186.50:8030. Already tried 7 time(s); retry policy
is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000
MILLISECONDS)
15/12/21 02:41:08 INFO ipc.Client: Retrying connect to server:
lgpbd1610.gso.aexp.com/10.22.186.50:8030. Already tried 8 time(s); retry policy
is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000
MILLISECONDS)
15/12/21 02:41:09 INFO ipc.Client: Retrying connect to server:
lgpbd1610.gso.aexp.com/10.22.186.50:8030. Already tried 9 time(s); retry policy
is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000
MILLISECONDS)
15/12/21 02:41:09 INFO retry.RetryInvocationHandler: Exception while invoking
allocate of class ApplicationMasterProtocolPBClientImpl over ResourceManager at
lgpbd1610.gso.aexp.com/10.22.186.50:8030 after 1 fail over attempts. Trying to
fail over after sleeping for 36171ms.
java.net.ConnectException: Call From lgpbd1614.gso.aexp.com/10.22.186.54 to
lgpbd1610.gso.aexp.com:8030 failed on connection exception:
java.net.ConnectException: Connection refused; For more details see:
http://wiki.apache.org/hadoop/ConnectionRefused
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:783)
at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:730)
at org.apache.hadoop.ipc.Client.call(Client.java:1417)
at org.apache.hadoop.ipc.Client.call(Client.java:1366)
at
org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:206)
at com.sun.proxy.$Proxy8.allocate(Unknown Source)
at
org.apache.hadoop.yarn.api.impl.pb.client.ApplicationMasterProtocolPBClientImpl.allocate(ApplicationMasterProtocolPBClientImpl.java:77)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:187)
at
org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102)
at com.sun.proxy.$Proxy9.allocate(Unknown Source)
at
org.apache.hadoop.yarn.client.api.impl.AMRMClientImpl.allocate(AMRMClientImpl.java:251)
at
org.apache.twill.internal.yarn.Hadoop21YarnAMClient.allocate(Hadoop21YarnAMClient.java:129)
at
org.apache.twill.internal.appmaster.ApplicationMasterService.doRun(ApplicationMasterService.java:374)
at
org.apache.twill.internal.appmaster.ApplicationMasterService.access$1000(ApplicationMasterService.java:114)
at
org.apache.twill.internal.appmaster.ApplicationMasterService$ServiceDelegate.run(ApplicationMasterService.java:783)
at
com.google.common.util.concurrent.AbstractExecutionThreadService$1$1.run(AbstractExecutionThreadService.java:52)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)
at
org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:529)
at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:493)
at
org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:611)
at
org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:701)
at org.apache.hadoop.ipc.Client$Connection.access$2900(Client.java:371)
at org.apache.hadoop.ipc.Client.getConnection(Client.java:1465)
at org.apache.hadoop.ipc.Client.call(Client.java:1384)
... 17 more
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)