You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2016/04/25 10:22:12 UTC

[jira] [Commented] (SPARK-14889) scala.MatchError: NONE (of class scala.Enumeration$Val) when spark.scheduler.mode=NONE

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

Sean Owen commented on SPARK-14889:
-----------------------------------

Yes I think Pool and TaskSchedulerImpl have blocks that should throw a better exception when not matchin FAIR or FIFO.

> scala.MatchError: NONE (of class scala.Enumeration$Val) when spark.scheduler.mode=NONE
> --------------------------------------------------------------------------------------
>
>                 Key: SPARK-14889
>                 URL: https://issues.apache.org/jira/browse/SPARK-14889
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 2.0.0
>            Reporter: Jacek Laskowski
>            Priority: Minor
>
> When {{TaskSchedulerImpl}} is initialized it pattern matches on acceptable scheduling modes - {{FIFO}} and {{FAIR}} modes - but misses {{NONE}}.
> It should at least pattern match the case and throw a more meaningful exception.
> {code}
> ➜  spark git:(master) ✗ ./bin/spark-shell -c spark.scheduler.mode=NONE
> 16/04/25 09:15:00 ERROR SparkContext: Error initializing SparkContext.
> scala.MatchError: NONE (of class scala.Enumeration$Val)
> 	at org.apache.spark.scheduler.Pool.<init>(Pool.scala:53)
> 	at org.apache.spark.scheduler.TaskSchedulerImpl.initialize(TaskSchedulerImpl.scala:131)
> 	at org.apache.spark.SparkContext$.org$apache$spark$SparkContext$$createTaskScheduler(SparkContext.scala:2352)
> 	at org.apache.spark.SparkContext.<init>(SparkContext.scala:492)
> {code}



--
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