Github user jkbradley commented on the pull request:
https://github.com/apache/spark/pull/4811#issuecomment-76487495
LGTM. I ran into a bug running the example, but it seems to be coming from
elsewhere. It happens when calling train---and not all the time, only
sometimes:
```
java.lang.ClassCastException: scala.None$ cannot be cast to java.util.List
at
org.apache.spark.api.python.PythonAccumulatorParam.addInPlace(PythonRDD.scala:745)
at org.apache.spark.Accumulable.$plus$plus$eq(Accumulators.scala:82)
at
org.apache.spark.Accumulators$$anonfun$add$2.apply(Accumulators.scala:340)
at
org.apache.spark.Accumulators$$anonfun$add$2.apply(Accumulators.scala:335)
at
scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:772)
at
scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:98)
at
scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:98)
at
scala.collection.mutable.HashTable$class.foreachEntry(HashTable.scala:226)
at scala.collection.mutable.HashMap.foreachEntry(HashMap.scala:39)
at scala.collection.mutable.HashMap.foreach(HashMap.scala:98)
at
scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:771)
at org.apache.spark.Accumulators$.add(Accumulators.scala:335)
at
org.apache.spark.scheduler.DAGScheduler.updateAccumulators(DAGScheduler.scala:892)
at
org.apache.spark.scheduler.DAGScheduler.handleTaskCompletion(DAGScheduler.scala:974)
at
org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onReceive(DAGScheduler.scala:1398)
at
org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onReceive(DAGScheduler.scala:1362)
at org.apache.spark.util.EventLoop$$anon$1.run(EventLoop.scala:48)
15/02/27 14:41:29 ERROR DAGScheduler: Failed to update accumulators for
ResultTask(279, 4)
java.lang.ClassCastException: scala.None$ cannot be cast to java.util.List
at
org.apache.spark.api.python.PythonAccumulatorParam.addInPlace(PythonRDD.scala:745)
at org.apache.spark.Accumulable.$plus$plus$eq(Accumulators.scala:82)
at
org.apache.spark.Accumulators$$anonfun$add$2.apply(Accumulators.scala:340)
at
org.apache.spark.Accumulators$$anonfun$add$2.apply(Accumulators.scala:335)
at
scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:772)
at
scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:98)
at
scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:98)
at
scala.collection.mutable.HashTable$class.foreachEntry(HashTable.scala:226)
at scala.collection.mutable.HashMap.foreachEntry(HashMap.scala:39)
at scala.collection.mutable.HashMap.foreach(HashMap.scala:98)
at
scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:771)
at org.apache.spark.Accumulators$.add(Accumulators.scala:335)
at
org.apache.spark.scheduler.DAGScheduler.updateAccumulators(DAGScheduler.scala:892)
at
org.apache.spark.scheduler.DAGScheduler.handleTaskCompletion(DAGScheduler.scala:974)
at
org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onReceive(DAGScheduler.scala:1398)
at
org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onReceive(DAGScheduler.scala:1362)
at org.apache.spark.util.EventLoop$$anon$1.run(EventLoop.scala:48)
```
I'll make a separate JIRA for it.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]