You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Joseph K. Bradley (JIRA)" <ji...@apache.org> on 2016/03/14 19:22:33 UTC
[jira] [Updated] (SPARK-13815) Provide better Exception messages in
Pipeline load methods
[ https://issues.apache.org/jira/browse/SPARK-13815?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joseph K. Bradley updated SPARK-13815:
--------------------------------------
Summary: Provide better Exception messages in Pipeline load methods (was: UnsupportedOperationException: empty collection when metadata for a Pipeline is an empty file)
> Provide better Exception messages in Pipeline load methods
> ----------------------------------------------------------
>
> Key: SPARK-13815
> URL: https://issues.apache.org/jira/browse/SPARK-13815
> Project: Spark
> Issue Type: Improvement
> Components: MLlib
> Affects Versions: 2.0.0
> Environment: today's build of 2.0.0-SNAPSHOT
> Reporter: Jacek Laskowski
> Priority: Minor
>
> The following code that loads a {{Pipeline}} from an empty {{metadata}} file throws an exception (expected) that says nothing about the real cause of it.
> {code}
> $ ls -l hello-pipeline/metadata
> -rw-r--r-- 1 jacek staff 0 11 mar 09:00 hello-pipeline/metadata
> scala> Pipeline.read.load("hello-pipeline")
> ...
> java.lang.UnsupportedOperationException: empty collection
> at org.apache.spark.rdd.RDD$$anonfun$first$1.apply(RDD.scala:1344)
> at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:150)
> at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:111)
> at org.apache.spark.rdd.RDD.withScope(RDD.scala:316)
> at org.apache.spark.rdd.RDD.first(RDD.scala:1341)
> at org.apache.spark.ml.util.DefaultParamsReader$.loadMetadata(ReadWrite.scala:285)
> at org.apache.spark.ml.Pipeline$SharedReadWrite$.load(Pipeline.scala:253)
> at org.apache.spark.ml.Pipeline$PipelineReader.load(Pipeline.scala:203)
> at org.apache.spark.ml.Pipeline$PipelineReader.load(Pipeline.scala:197)
> {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