beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Etienne Chauchot (JIRA)" <>
Subject [jira] [Commented] (BEAM-1802) Spark Runner does not shutdown correctly when executing multiple pipelines in sequence
Date Fri, 14 Apr 2017 14:05:41 GMT


Etienne Chauchot commented on BEAM-1802:

It works in batch mode but not in streaming mode:
in streaming mode calling {{pipelineResult.cancel()}} after {{pipelineResult.waitUntilFinish()}}
did an infinite loop. {{pipelineResult.waitUntilFinish()}} seems blocking forever and {{pipelineResult.cancel()}}
never gets called. Is this the expected behavior? 
I did a work around by calling  {{pipelineResult.waitUntilFinish(timeout)}}

In direct runner it behaves differently {{pipelineResult.waitUntilFinish()}} returns no need
for {{pipelineResult.cancel()}} or for timeout

> Spark Runner does not shutdown correctly when executing multiple pipelines in sequence
> --------------------------------------------------------------------------------------
>                 Key: BEAM-1802
>                 URL:
>             Project: Beam
>          Issue Type: Bug
>          Components: runner-spark
>            Reporter: Ismaël Mejía
>            Assignee: Aviem Zur
>             Fix For: First stable release
> I found this while running the Nexmark queries in sequence in local mode. I had the correct
configuration but it didn't seem to work.
> 17/03/24 12:07:49 WARN org.apache.spark.SparkContext: Multiple running SparkContexts
detected in the same JVM!
> org.apache.spark.SparkException: Only one SparkContext may be running in this JVM (see
SPARK-2243). To ignore this error, set spark.driver.allowMultipleContexts = true. The currently
running SparkContext was created at:
> org.apache.beam.runners.spark.translation.SparkContextFactory.createSparkContext(
> org.apache.beam.runners.spark.translation.SparkContextFactory.getSparkContext(
> org.apache.beam.integration.nexmark.NexmarkDriver.runAll(
> org.apache.beam.integration.nexmark.drivers.NexmarkSparkDriver.main(
> 	at org.apache.spark.SparkContext$$anonfun$assertNoOtherContextIsRunning$1.apply(SparkContext.scala:2257)
> 	at org.apache.spark.SparkContext$$anonfun$assertNoOtherContextIsRunning$1.apply(SparkContext.scala:2239)

This message was sent by Atlassian JIRA

View raw message