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/26 12:47:13 UTC
[jira] [Updated] (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:all-tabpanel ]
Sean Owen updated SPARK-14889:
------------------------------
Assignee: Subhobrata Dey
> 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
> Assignee: Subhobrata Dey
> Priority: Minor
> Fix For: 2.0.0
>
>
> 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