You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Bharath Ravi Kumar (JIRA)" <ji...@apache.org> on 2014/06/26 20:50:24 UTC

[jira] [Commented] (SPARK-2292) NullPointerException in JavaPairRDD.reduceByKey

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

Bharath Ravi Kumar commented on SPARK-2292:
-------------------------------------------

Raised the priority to critical since it is likely affecting other users and is legitimate usage imo.

> NullPointerException in JavaPairRDD.reduceByKey
> -----------------------------------------------
>
>                 Key: SPARK-2292
>                 URL: https://issues.apache.org/jira/browse/SPARK-2292
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 1.0.0
>         Environment: Spark 1.0.0, Standalone with a single slave running with 4G memory allocation. The data file was 
>            Reporter: Bharath Ravi Kumar
>            Priority: Critical
>
> Invoking JavaPairRDD.reduceByKey results in an NPE:
> 14/06/26 21:05:35 WARN scheduler.TaskSetManager: Loss was due to java.lang.NullPointerException
> java.lang.NullPointerException
> 	at org.apache.spark.api.java.JavaPairRDD$$anonfun$pairFunToScalaFun$1.apply(JavaPairRDD.scala:750)
> 	at org.apache.spark.api.java.JavaPairRDD$$anonfun$pairFunToScalaFun$1.apply(JavaPairRDD.scala:750)
> 	at scala.collection.Iterator$$anon$11.next(Iterator.scala:328)
> 	at org.apache.spark.Aggregator.combineValuesByKey(Aggregator.scala:59)
> 	at org.apache.spark.rdd.PairRDDFunctions$$anonfun$1.apply(PairRDDFunctions.scala:96)
> 	at org.apache.spark.rdd.PairRDDFunctions$$anonfun$1.apply(PairRDDFunctions.scala:95)
> 	at org.apache.spark.rdd.RDD$$anonfun$14.apply(RDD.scala:582)
> 	at org.apache.spark.rdd.RDD$$anonfun$14.apply(RDD.scala:582)
> 	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:35)
> 	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:262)
> 	at org.apache.spark.rdd.RDD.iterator(RDD.scala:229)
> 	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:158)
> 	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:99)
> 	at org.apache.spark.scheduler.Task.run(Task.scala:51)
> 	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:187)
> 	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)
>  This occurs only after migrating to the 1.0.0 API. The details of the code the data file used to test are included in this gist : https://gist.github.com/reachbach/d8977c8eb5f71f889301



--
This message was sent by Atlassian JIRA
(v6.2#6252)