Return-Path: X-Original-To: apmail-spark-issues-archive@minotaur.apache.org Delivered-To: apmail-spark-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E925D1106E for ; Sat, 28 Jun 2014 07:25:24 +0000 (UTC) Received: (qmail 17155 invoked by uid 500); 28 Jun 2014 07:25:24 -0000 Delivered-To: apmail-spark-issues-archive@spark.apache.org Received: (qmail 17123 invoked by uid 500); 28 Jun 2014 07:25:24 -0000 Mailing-List: contact issues-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@spark.apache.org Delivered-To: mailing list issues@spark.apache.org Received: (qmail 17109 invoked by uid 99); 28 Jun 2014 07:25:24 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Jun 2014 07:25:24 +0000 Date: Sat, 28 Jun 2014 07:25:24 +0000 (UTC) From: "Mingyu Kim (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SPARK-2292) NullPointerException in JavaPairRDD.mapToPair MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SPARK-2292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14046791#comment-14046791 ] Mingyu Kim commented on SPARK-2292: ----------------------------------- Given that this was added to better support lambda functions better, can this be a Java version issue? Which version of Java did you guys use? I'm using Java 7. > NullPointerException in JavaPairRDD.mapToPair > --------------------------------------------- > > 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 the master & single slave running on Ubuntu on a laptop. 4G mem and 8 cores were available to the executor . > Reporter: Bharath Ravi Kumar > Priority: Critical > Attachments: SPARK-2292-aash-repro.tar.gz > > > Correction: Invoking JavaPairRDD.mapToPair results in an NPE: > {noformat} > 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) > {noformat} > 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)