You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Emanuele Cesena (JIRA)" <ji...@apache.org> on 2016/06/10 06:35:20 UTC

[jira] [Updated] (BEAM-333) Support "stop" for streaming pipelines

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

Emanuele Cesena updated BEAM-333:
---------------------------------
    Description: 
Run:
{code}
$ flink run -c org.apache.beam.runners.flink.examples.streaming.KafkaWindowedWordCountExample /path/to/fat.jar
{code}

The job properly runs. Trying to stop it fails. (Cancelling works fine.)

{code}
$ flink list
------------------ Running/Restarting Jobs -------------------
10.06.2016 06:24:46 : cf004f703cb3d4f89254eedbc04718cc : KafkaExample - WindowSize: 10 seconds (RUNNING)
--------------------------------------------------------------
No scheduled jobs.


$ flink stop cf004f703cb3d4f89254eedbc04718cc

------------------------------------------------------------
 The program finished with the following exception:

java.lang.Exception: Stopping the job with ID cf004f703cb3d4f89254eedbc04718cc failed.
	at org.apache.flink.client.CliFrontend.stop(CliFrontend.java:629)
	at org.apache.flink.client.CliFrontend.parseParameters(CliFrontend.java:1201)
	at org.apache.flink.client.CliFrontend.main(CliFrontend.java:1243)
Caused by: java.lang.IllegalStateException: Job with ID cf004f703cb3d4f89254eedbc04718cc is not stoppable.
	at org.apache.flink.runtime.jobmanager.JobManager$$anonfun$handleMessage$1.applyOrElse(JobManager.scala:483)
	at scala.runtime.AbstractPartialFunction$mcVL$sp.apply$mcVL$sp(AbstractPartialFunction.scala:33)
	at scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:33)
	at scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:25)
	at org.apache.flink.runtime.LeaderSessionMessageFilter$$anonfun$receive$1.applyOrElse(LeaderSessionMessageFilter.scala:36)
	at scala.runtime.AbstractPartialFunction$mcVL$sp.apply$mcVL$sp(AbstractPartialFunction.scala:33)
	at scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:33)
	at scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:25)
	at org.apache.flink.runtime.LogMessages$$anon$1.apply(LogMessages.scala:33)
	at org.apache.flink.runtime.LogMessages$$anon$1.apply(LogMessages.scala:28)
	at scala.PartialFunction$class.applyOrElse(PartialFunction.scala:118)
	at org.apache.flink.runtime.LogMessages$$anon$1.applyOrElse(LogMessages.scala:28)
	at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
	at org.apache.flink.runtime.jobmanager.JobManager.aroundReceive(JobManager.scala:107)
	at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
	at akka.actor.ActorCell.invoke(ActorCell.scala:487)
	at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:254)
	at akka.dispatch.Mailbox.run(Mailbox.scala:221)
	at akka.dispatch.Mailbox.exec(Mailbox.scala:231)
	at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
	at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
	at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
	at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
{code}

  was:
Run:
```
$ flink run -c org.apache.beam.runners.flink.examples.streaming.KafkaWindowedWordCountExample /path/to/fat.jar
```

The job properly runs. Trying to stop it fails. (Cancelling works fine.)

```
$ flink list
------------------ Running/Restarting Jobs -------------------
10.06.2016 06:24:46 : cf004f703cb3d4f89254eedbc04718cc : KafkaExample - WindowSize: 10 seconds (RUNNING)
--------------------------------------------------------------
No scheduled jobs.


$ flink stop cf004f703cb3d4f89254eedbc04718cc

------------------------------------------------------------
 The program finished with the following exception:

java.lang.Exception: Stopping the job with ID cf004f703cb3d4f89254eedbc04718cc failed.
	at org.apache.flink.client.CliFrontend.stop(CliFrontend.java:629)
	at org.apache.flink.client.CliFrontend.parseParameters(CliFrontend.java:1201)
	at org.apache.flink.client.CliFrontend.main(CliFrontend.java:1243)
Caused by: java.lang.IllegalStateException: Job with ID cf004f703cb3d4f89254eedbc04718cc is not stoppable.
	at org.apache.flink.runtime.jobmanager.JobManager$$anonfun$handleMessage$1.applyOrElse(JobManager.scala:483)
	at scala.runtime.AbstractPartialFunction$mcVL$sp.apply$mcVL$sp(AbstractPartialFunction.scala:33)
	at scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:33)
	at scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:25)
	at org.apache.flink.runtime.LeaderSessionMessageFilter$$anonfun$receive$1.applyOrElse(LeaderSessionMessageFilter.scala:36)
	at scala.runtime.AbstractPartialFunction$mcVL$sp.apply$mcVL$sp(AbstractPartialFunction.scala:33)
	at scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:33)
	at scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:25)
	at org.apache.flink.runtime.LogMessages$$anon$1.apply(LogMessages.scala:33)
	at org.apache.flink.runtime.LogMessages$$anon$1.apply(LogMessages.scala:28)
	at scala.PartialFunction$class.applyOrElse(PartialFunction.scala:118)
	at org.apache.flink.runtime.LogMessages$$anon$1.applyOrElse(LogMessages.scala:28)
	at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
	at org.apache.flink.runtime.jobmanager.JobManager.aroundReceive(JobManager.scala:107)
	at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
	at akka.actor.ActorCell.invoke(ActorCell.scala:487)
	at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:254)
	at akka.dispatch.Mailbox.run(Mailbox.scala:221)
	at akka.dispatch.Mailbox.exec(Mailbox.scala:231)
	at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
	at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
	at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
	at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
```


> Support "stop" for streaming pipelines
> --------------------------------------
>
>                 Key: BEAM-333
>                 URL: https://issues.apache.org/jira/browse/BEAM-333
>             Project: Beam
>          Issue Type: Bug
>          Components: runner-flink
>            Reporter: Emanuele Cesena
>
> Run:
> {code}
> $ flink run -c org.apache.beam.runners.flink.examples.streaming.KafkaWindowedWordCountExample /path/to/fat.jar
> {code}
> The job properly runs. Trying to stop it fails. (Cancelling works fine.)
> {code}
> $ flink list
> ------------------ Running/Restarting Jobs -------------------
> 10.06.2016 06:24:46 : cf004f703cb3d4f89254eedbc04718cc : KafkaExample - WindowSize: 10 seconds (RUNNING)
> --------------------------------------------------------------
> No scheduled jobs.
> $ flink stop cf004f703cb3d4f89254eedbc04718cc
> ------------------------------------------------------------
>  The program finished with the following exception:
> java.lang.Exception: Stopping the job with ID cf004f703cb3d4f89254eedbc04718cc failed.
> 	at org.apache.flink.client.CliFrontend.stop(CliFrontend.java:629)
> 	at org.apache.flink.client.CliFrontend.parseParameters(CliFrontend.java:1201)
> 	at org.apache.flink.client.CliFrontend.main(CliFrontend.java:1243)
> Caused by: java.lang.IllegalStateException: Job with ID cf004f703cb3d4f89254eedbc04718cc is not stoppable.
> 	at org.apache.flink.runtime.jobmanager.JobManager$$anonfun$handleMessage$1.applyOrElse(JobManager.scala:483)
> 	at scala.runtime.AbstractPartialFunction$mcVL$sp.apply$mcVL$sp(AbstractPartialFunction.scala:33)
> 	at scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:33)
> 	at scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:25)
> 	at org.apache.flink.runtime.LeaderSessionMessageFilter$$anonfun$receive$1.applyOrElse(LeaderSessionMessageFilter.scala:36)
> 	at scala.runtime.AbstractPartialFunction$mcVL$sp.apply$mcVL$sp(AbstractPartialFunction.scala:33)
> 	at scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:33)
> 	at scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:25)
> 	at org.apache.flink.runtime.LogMessages$$anon$1.apply(LogMessages.scala:33)
> 	at org.apache.flink.runtime.LogMessages$$anon$1.apply(LogMessages.scala:28)
> 	at scala.PartialFunction$class.applyOrElse(PartialFunction.scala:118)
> 	at org.apache.flink.runtime.LogMessages$$anon$1.applyOrElse(LogMessages.scala:28)
> 	at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
> 	at org.apache.flink.runtime.jobmanager.JobManager.aroundReceive(JobManager.scala:107)
> 	at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
> 	at akka.actor.ActorCell.invoke(ActorCell.scala:487)
> 	at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:254)
> 	at akka.dispatch.Mailbox.run(Mailbox.scala:221)
> 	at akka.dispatch.Mailbox.exec(Mailbox.scala:231)
> 	at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
> 	at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
> 	at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
> 	at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
> {code}



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