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 ADB2911AC7 for ; Mon, 11 Aug 2014 15:38:15 +0000 (UTC) Received: (qmail 56943 invoked by uid 500); 11 Aug 2014 15:38:15 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 56871 invoked by uid 500); 11 Aug 2014 15:38:15 -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 56855 invoked by uid 500); 11 Aug 2014 15:38:15 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 56852 invoked by uid 99); 11 Aug 2014 15:38:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Aug 2014 15:38:15 +0000 Date: Mon, 11 Aug 2014 15:38:15 +0000 (UTC) From: "Brock Noland (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-7624) Reduce operator initialization failed when running multiple MR query on spark 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-7624?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D14092= 900#comment-14092900 ]=20 Brock Noland commented on HIVE-7624: ------------------------------------ Nice work!! bq. The patch does not appear to apply with p0, p1, or p2 Looks like the patch needs to be rebased. > Reduce operator initialization failed when running multiple MR query on s= park > -------------------------------------------------------------------------= ---- > > Key: HIVE-7624 > URL: https://issues.apache.org/jira/browse/HIVE-7624 > Project: Hive > Issue Type: Bug > Components: Spark > Reporter: Rui Li > Assignee: Rui Li > Attachments: HIVE-7624.2-spark.patch, HIVE-7624.3-spark.patch, HI= VE-7624.4-spark.patch, HIVE-7624.5-spark.patch, HIVE-7624.patch > > > The following error occurs when I try to run a query with multiple reduce= works (M->R->R): > {quote} > 14/08/05 12:17:07 ERROR Executor: Exception in task 0.0 in stage 2.0 (TID= 1) > java.lang.RuntimeException: Reduce operator initialization failed > at org.apache.hadoop.hive.ql.exec.mr.ExecReducer.configure(ExecRe= ducer.java:170) > at org.apache.hadoop.hive.ql.exec.spark.HiveReduceFunction.call(H= iveReduceFunction.java:53) > at org.apache.hadoop.hive.ql.exec.spark.HiveReduceFunction.call(H= iveReduceFunction.java:31) > at org.apache.spark.api.java.JavaRDDLike$$anonfun$fn$7$1.apply(Ja= vaRDDLike.scala:164) > at org.apache.spark.api.java.JavaRDDLike$$anonfun$fn$7$1.apply(Ja= vaRDDLike.scala:164) > at org.apache.spark.rdd.RDD$$anonfun$13.apply(RDD.scala:596) > at org.apache.spark.rdd.RDD$$anonfun$13.apply(RDD.scala:596) > 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(ShuffleMapTa= sk.scala:68) > at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTa= sk.scala:41) > at org.apache.spark.scheduler.Task.run(Task.scala:54) > at org.apache.spark.executor.Executor$TaskRunner.run(Executor.sca= la:199) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolEx= ecutor.java:1145) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolE= xecutor.java:615) > at java.lang.Thread.run(Thread.java:744) > Caused by: java.lang.RuntimeException: cannot find field reducesinkkey0 f= rom [0:_col0] > at org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorU= tils.getStandardStructFieldRef(ObjectInspectorUtils.java:415) > at org.apache.hadoop.hive.serde2.objectinspector.StandardStructOb= jectInspector.getStructFieldRef(StandardStructObjectInspector.java:147) > =E2=80=A6 > {quote} > I suspect we're applying the reduce function in wrong order. -- This message was sent by Atlassian JIRA (v6.2#6252)