You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Ilya Ganelin (JIRA)" <ji...@apache.org> on 2015/04/20 06:13:59 UTC

[jira] [Commented] (SPARK-6891) ExecutorAllocationManager will request negative number executors

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

Ilya Ganelin commented on SPARK-6891:
-------------------------------------

[~meiyoula] Any hints on reproducing this aside from your configuration? E.g. simple test code to execute?

> ExecutorAllocationManager will request negative number executors
> ----------------------------------------------------------------
>
>                 Key: SPARK-6891
>                 URL: https://issues.apache.org/jira/browse/SPARK-6891
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>            Reporter: meiyoula
>            Priority: Critical
>
> Below is the exception:
>        15/04/14 10:10:18 ERROR Utils: Uncaught exception in thread spark-dynamic-executor-allocation-0
>         java.lang.IllegalArgumentException: Attempted to request a negative number of executor(s) -1 from the cluster manager. Please specify a positive number!
>              at org.apache.spark.scheduler.cluster.CoarseGrainedSchedulerBackend.requestTotalExecutors(CoarseGrainedSchedulerBackend.scala:342)
>              at org.apache.spark.SparkContext.requestTotalExecutors(SparkContext.scala:1170)
>              at org.apache.spark.ExecutorAllocationManager.addExecutors(ExecutorAllocationManager.scala:294)
>              at org.apache.spark.ExecutorAllocationManager.addOrCancelExecutorRequests(ExecutorAllocationManager.scala:263)
>              at org.apache.spark.ExecutorAllocationManager.org$apache$spark$ExecutorAllocationManager$$schedule(ExecutorAllocationManager.scala:230)
>              at org.apache.spark.ExecutorAllocationManager$$anon$1$$anonfun$run$1.apply$mcV$sp(ExecutorAllocationManager.scala:189)
>              at org.apache.spark.ExecutorAllocationManager$$anon$1$$anonfun$run$1.apply(ExecutorAllocationManager.scala:189)
>              at org.apache.spark.ExecutorAllocationManager$$anon$1$$anonfun$run$1.apply(ExecutorAllocationManager.scala:189)
>              at org.apache.spark.util.Utils$.logUncaughtExceptions(Utils.scala:1723)
>              at org.apache.spark.ExecutorAllocationManager$$anon$1.run(ExecutorAllocationManager.scala:189)
>              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>              at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
>              at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
>              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
>              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>             at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>             at java.lang.Thread.run(Thread.java:722)
> Below is the configurations I  setted:
>        spark.dynamicAllocation.enabled true
>        spark.dynamicAllocation.minExecutors   0
>        spark.dynamicAllocation.initialExecutors        3
>        spark.dynamicAllocation.maxExecutors    7
>        spark.dynamicAllocation.executorIdleTimeout     30
>        spark.shuffle.service.enabled   true



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

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