[
https://issues.apache.org/jira/browse/FLINK-2797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14969417#comment-14969417
]
ASF GitHub Bot commented on FLINK-2797:
---------------------------------------
Github user mxm commented on a diff in the pull request:
https://github.com/apache/flink/pull/1214#discussion_r42772667
--- Diff:
flink-clients/src/test/java/org/apache/flink/client/program/ClientTest.java ---
@@ -139,6 +140,69 @@ public void shouldSubmitToJobClient() {
}
/**
+ * Tests that invalid detached mode programs fail.
+ */
+ @Test
+ public void testDetachedMode() throws Exception{
+
jobManagerSystem.actorOf(Props.create(SuccessReturningActor.class),
JobManager.JOB_MANAGER_NAME());
+ Client out = new Client(config);
+
+ try {
+ PackagedProgram prg = new
PackagedProgram(TestExecuteTwice.class, "/dev/random", "/tmp");
+ out.runDetached(prg, 1);
+ } catch (ProgramInvocationException e) {
+ assertEquals("The Job was submitted in detached mode.
Only one execution is allowed. " +
--- End diff --
Can we make this message available somewhere such that it doesn't have to
be copied over and over?
> CLI: Missing option to submit jobs in detached mode
> ---------------------------------------------------
>
> Key: FLINK-2797
> URL: https://issues.apache.org/jira/browse/FLINK-2797
> Project: Flink
> Issue Type: Bug
> Components: Command-line client
> Affects Versions: 0.9, 0.10
> Reporter: Maximilian Michels
> Assignee: Sachin Goel
> Fix For: 0.10
>
>
> Jobs can only be submitted in detached mode using YARN but not on a
> standalone installation. This has been requested by users who want to submit
> a job, get the job id, and later query its status.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)