From commits-return-78747-archive-asf-public=cust-asf.ponee.io@beam.apache.org Wed Jun 20 17:32:04 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id F230218067A for ; Wed, 20 Jun 2018 17:32:03 +0200 (CEST) Received: (qmail 78388 invoked by uid 500); 20 Jun 2018 15:32:02 -0000 Mailing-List: contact commits-help@beam.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.apache.org Delivered-To: mailing list commits@beam.apache.org Received: (qmail 78283 invoked by uid 99); 20 Jun 2018 15:32:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2018 15:32:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 0BFCBC7195 for ; Wed, 20 Jun 2018 15:32:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id oIZmYG3gslKs for ; Wed, 20 Jun 2018 15:32:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 19CED5F4A0 for ; Wed, 20 Jun 2018 15:32:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 87444E0950 for ; Wed, 20 Jun 2018 15:32:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3CE2C21832 for ; Wed, 20 Jun 2018 15:32:00 +0000 (UTC) Date: Wed, 20 Jun 2018 15:32:00 +0000 (UTC) From: "JC (JIRA)" To: commits@beam.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (BEAM-4597) Serialization problem using SparkRunner and KryoSerializer from spark MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 JC created BEAM-4597: ------------------------ Summary: Serialization problem using SparkRunner and KryoSeria= lizer from spark Key: BEAM-4597 URL: https://issues.apache.org/jira/browse/BEAM-4597 Project: Beam Issue Type: Bug Components: runner-spark Affects Versions: 2.4.0 Reporter: JC Assignee: Amit Sela Attachments: BEAM-SPARK-KRYO-BUG.zip When using=C2=A0the SparkRunner and specifying Spark to use the 'KryoSerial= izer' as: {quote}spark-submit --class org.apache.beam.examples.BugWithKryoOnSpark --m= aster yarn --deploy-mode client --conf spark.serializer=3Dorg.apache.spark.= serializer.KryoSerializer /tmp/kafka-sdk-beam-example-bundled-0.1.jar --run= ner=3DSparkRunner {quote} We get an exception after 10 or 15 seconds: {quote}Exception in thread "main" java.lang.RuntimeException: org.apache.sp= ark.SparkException: Job aborted due to stage failure: Exception while getti= ng task result: com.esotericsoftware.kryo.KryoException: Unable to find cla= ss: org.apache.beam.runners.core.metrics.MetricsContainerImpl$$Lambda$31/18= 75283985 Serialization trace: factory (org.apache.beam.runners.core.metrics.MetricsMap) counters (org.apache.beam.runners.core.metrics.MetricsContainerImpl) metricsContainers (org.apache.beam.runners.core.metrics.MetricsContainerSte= pMap) metricsContainers (org.apache.beam.runners.spark.io.SparkUnboundedSource$Me= tadata) at org.apache.beam.runners.spark.SparkPipelineResult.runtimeExceptionFrom(= SparkPipelineResult.java:55) at org.apache.beam.runners.spark.SparkPipelineResult.beamExceptionFrom(Spa= rkPipelineResult.java:72) at org.apache.beam.runners.spark.SparkPipelineResult.access$000(SparkPipel= ineResult.java:41) at org.apache.beam.runners.spark.SparkPipelineResult$StreamingMode.stop(Sp= arkPipelineResult.java:163) at org.apache.beam.runners.spark.SparkPipelineResult.offerNewState(SparkPi= pelineResult.java:198) at org.apache.beam.runners.spark.SparkPipelineResult.waitUntilFinish(Spark= PipelineResult.java:101) at org.apache.beam.runners.spark.SparkPipelineResult.waitUntilFinish(Spark= PipelineResult.java:87) at org.apache.beam.examples.BugWithKryoOnSpark.main(BugWithKryoOnSpark.jav= a:75) {quote} But when using=C2=A0the SparkRunner and specifying Spark to use the 'JavaSe= rializer'=C2=A0as: {quote}spark-submit --class org.apache.beam.examples.BugWithKryoOnSpark --m= aster yarn --deploy-mode client --conf spark.serializer=3Dorg.apache.spark.= serializer.JavaSerializer /tmp/kafka-sdk-beam-example-bundled-0.1.jar --run= ner=3DSparkRunner {quote} The pipeline works correctly. Our deployment consist of=C2=A0(CDH 5.14.2, Parcels) and Spark2 spark-submit --version Welcome to ____ __ / __/__ ___ _____/ /__ _\ \/ _ \/ _ `/ __/ '_/ /___/ .__/\_,_/_/ /_/\_\ version 2.3.0.cloudera2 /_/ =20 Using Scala version 2.11.8, Java HotSpot(TM) 64-Bit Server VM, 1.8.0_151 Branch HEAD Compiled by user jenkins on 2018-04-10T23:08:17Z Revision 9f5baab06f127486a030024877fc13a3992f100f Url git://github.mtv.cloudera.com/CDH/spark.git Type --help for more information. I have attached a sample=C2=A0maven project which read data from kafka (loc= alhost) and just produce an echo of the incoming data to reproduce this bug= , please refer to the README=C2=A0for the full Stacktrace and information o= f how to build the sample =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)