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 9FC4F10CDE for ; Tue, 5 Aug 2014 09:23:13 +0000 (UTC) Received: (qmail 2257 invoked by uid 500); 5 Aug 2014 09:23:13 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 2176 invoked by uid 500); 5 Aug 2014 09:23: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 2160 invoked by uid 500); 5 Aug 2014 09:23:12 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 2157 invoked by uid 99); 5 Aug 2014 09:23:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2014 09:23:12 +0000 Date: Tue, 5 Aug 2014 09:23: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=3D14086= 035#comment-14086035 ]=20 Brock Noland commented on HIVE-7540: ------------------------------------ Hi [~lirui], it seems in Spark 1.1 RangePartitioner uses spark.serializer (= https://github.com/apache/spark/commit/66135a341d9f8baecc149d13ae5511f14578= c395). Can you retry this on the spark 1.1 branch? > 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 > > 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)