spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shivu Sondur (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-26872) Use a configurable value for final termination in the JobScheduler.stop() method
Date Fri, 01 Mar 2019 05:01:00 GMT

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

Shivu Sondur commented on SPARK-26872:
--------------------------------------

I  am working on this issue

> Use a configurable value for final termination in the JobScheduler.stop() method
> --------------------------------------------------------------------------------
>
>                 Key: SPARK-26872
>                 URL: https://issues.apache.org/jira/browse/SPARK-26872
>             Project: Spark
>          Issue Type: Improvement
>          Components: Scheduler
>    Affects Versions: 2.4.0
>            Reporter: Steven Rosenberry
>            Priority: Minor
>
> As a user of Spark, I would like to configure the timeout that controls final termination
after stopping the streaming context and while processing previously queued jobs.  Currently,
there is a hard-coded limit of one hour around line 129 in the JobScheduler.stop() method:
> {code:java}
> // Wait for the queued jobs to complete if indicated
> val terminated = if (processAllReceivedData) {
> jobExecutor.awaitTermination(1, TimeUnit.HOURS) // just a very large period of time
> } else {
> jobExecutor.awaitTermination(2, TimeUnit.SECONDS)
> }
> {code}
> It would provide additional functionality to the Spark platform if this value was configurable. 
My use case may take many hours to finish the queued job as it was created from a large data
file.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message