flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-1454) CliFrontend blocks for 100 seconds when submitting to a non-existent JobManager
Date Mon, 16 Feb 2015 14:15:12 GMT

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

ASF GitHub Bot commented on FLINK-1454:
---------------------------------------

GitHub user StephanEwen opened a pull request:

    https://github.com/apache/flink/pull/404

    [FLINK-1454] [job client] Improve error handling for failed connections between JobClient
and JobManager

      - Decreases time until connection failure is discovered.
      - Improves error messages
      - adds / extends tests
      - Removes implicits in runtime, makes actor system and timeout always an explicit parameter
      - Removes old redundant config constants

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/StephanEwen/incubator-flink client_connect

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/404.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #404
    
----
commit 9365ba8cb3859d7a04a301d3417e418914ce813c
Author: Stephan Ewen <sewen@apache.org>
Date:   2015-02-16T12:37:22Z

    [FLINK-1454] [job client] Improve error handling for failed connections between JobClient
and JobManager

----


> CliFrontend blocks for 100 seconds when submitting to a non-existent JobManager
> -------------------------------------------------------------------------------
>
>                 Key: FLINK-1454
>                 URL: https://issues.apache.org/jira/browse/FLINK-1454
>             Project: Flink
>          Issue Type: Bug
>          Components: JobManager
>    Affects Versions: 0.9
>            Reporter: Robert Metzger
>
> When a user tries to submit a job to a job manager which doesn't exist at all, the CliFrontend
blocks for 100 seconds.
> Ideally, Akka would fail because it can not connect to the given hostname:port.
>  
> {code}
> ./bin/flink run ./examples/flink-java-examples-0.9-SNAPSHOT-WordCount.jar -c foo.Baz
> org.apache.flink.client.program.ProgramInvocationException: The main method caused an
error.
> 	at org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:449)
> 	at org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExecution(PackagedProgram.java:350)
> 	at org.apache.flink.client.program.Client.run(Client.java:242)
> 	at org.apache.flink.client.CliFrontend.executeProgram(CliFrontend.java:389)
> 	at org.apache.flink.client.CliFrontend.run(CliFrontend.java:362)
> 	at org.apache.flink.client.CliFrontend.parseParameters(CliFrontend.java:1078)
> 	at org.apache.flink.client.CliFrontend.main(CliFrontend.java:1102)
> Caused by: java.util.concurrent.TimeoutException: Futures timed out after [100 seconds]
> 	at scala.concurrent.impl.Promise$DefaultPromise.ready(Promise.scala:219)
> 	at scala.concurrent.impl.Promise$DefaultPromise.result(Promise.scala:223)
> 	at scala.concurrent.Await$$anonfun$result$1.apply(package.scala:107)
> 	at scala.concurrent.BlockContext$DefaultBlockContext$.blockOn(BlockContext.scala:53)
> 	at scala.concurrent.Await$.result(package.scala:107)
> 	at org.apache.flink.runtime.akka.AkkaUtils$.ask(AkkaUtils.scala:265)
> 	at org.apache.flink.runtime.client.JobClient$.uploadJarFiles(JobClient.scala:169)
> 	at org.apache.flink.runtime.client.JobClient.uploadJarFiles(JobClient.scala)
> 	at org.apache.flink.client.program.Client.run(Client.java:314)
> 	at org.apache.flink.client.program.Client.run(Client.java:296)
> 	at org.apache.flink.client.program.Client.run(Client.java:290)
> 	at org.apache.flink.client.program.ContextEnvironment.execute(ContextEnvironment.java:55)
> 	at org.apache.flink.examples.java.wordcount.WordCount.main(WordCount.java:82)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:434)
> 	... 6 more
> The exception above occurred while trying to run your command.
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message