Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A740E11227 for ; Wed, 6 Aug 2014 03:16:13 +0000 (UTC) Received: (qmail 85339 invoked by uid 500); 6 Aug 2014 03:16:13 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 85267 invoked by uid 500); 6 Aug 2014 03:16:13 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 85249 invoked by uid 500); 6 Aug 2014 03:16:13 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 85241 invoked by uid 99); 6 Aug 2014 03:16:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Aug 2014 03:16:13 +0000 Date: Wed, 6 Aug 2014 03:16:12 +0000 (UTC) From: "Brock Noland (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-7540) NotSerializableException encountered when using sortByKey transformation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-7540?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D14087= 191#comment-14087191 ]=20 Brock Noland commented on HIVE-7540: ------------------------------------ Thank you Rui! I think we have some options such as deploying spark 1.1 to = a webserver we control. I will look into these.. > NotSerializableException encountered when using sortByKey transformation > ------------------------------------------------------------------------ > > Key: HIVE-7540 > URL: https://issues.apache.org/jira/browse/HIVE-7540 > Project: Hive > Issue Type: Bug > Components: Spark > Environment: Spark-1.0.1 > Reporter: Rui Li > Assignee: Rui Li > Attachments: HIVE-7540-spark.patch > > > This exception is thrown when sortByKey is used as the shuffle transforma= tion between MapWork and ReduceWork: > {quote} > org.apache.spark.SparkException: Job aborted due to stage failure: Task n= ot serializable: java.io.NotSerializableException: org.apache.hadoop.io.Byt= esWritable > at org.apache.spark.scheduler.DAGScheduler.org$apache$spark$scheduler= $DAGScheduler$$failJobAndIndependentStages(DAGScheduler.scala:1049) > at org.apache.spark.scheduler.DAGScheduler$$anonfun$abortStage$1.appl= y(DAGScheduler.scala:1033) > at org.apache.spark.scheduler.DAGScheduler$$anonfun$abortStage$1.appl= y(DAGScheduler.scala:1031) > at scala.collection.mutable.ResizableArray$class.foreach(ResizableArr= ay.scala:59) > at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47) > at org.apache.spark.scheduler.DAGScheduler.abortStage(DAGScheduler.sc= ala:1031) > at org.apache.spark.scheduler.DAGScheduler.org$apache$spark$scheduler= $DAGScheduler$$submitMissingTasks(DAGScheduler.scala:772) > at org.apache.spark.scheduler.DAGScheduler.org$apache$spark$scheduler= $DAGScheduler$$submitStage(DAGScheduler.scala:715) > at org.apache.spark.scheduler.DAGScheduler$$anonfun$org$apache$spark$= scheduler$DAGScheduler$$submitStage$4.apply(DAGScheduler.scala:719) > at org.apache.spark.scheduler.DAGScheduler$$anonfun$org$apache$spark$= scheduler$DAGScheduler$$submitStage$4.apply(DAGScheduler.scala:718) > at scala.collection.immutable.List.foreach(List.scala:318) > at org.apache.spark.scheduler.DAGScheduler.org$apache$spark$scheduler= $DAGScheduler$$submitStage(DAGScheduler.scala:718) > at org.apache.spark.scheduler.DAGScheduler.handleJobSubmitted(DAGSche= duler.scala:699) > =E2=80=A6 > {quote} > The root cause is that the RangePartitioner used by sortByKey contains r= angeBounds: Array[BytesWritable], which is considered not serializable in s= park. > A workaround to this issue is to set the number of partitions to 1 when c= alling sortByKey, in which case the rangeBounds will be just an empty array= . > NO PRECOMMIT TESTS. This is for spark branch only. -- This message was sent by Atlassian JIRA (v6.2#6252)