From issues-return-21377-archive-asf-public=cust-asf.ponee.io@kylin.apache.org Thu Nov 1 03:31: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 A1C8918065D for ; Thu, 1 Nov 2018 03:31:03 +0100 (CET) Received: (qmail 81514 invoked by uid 500); 1 Nov 2018 02:31:02 -0000 Mailing-List: contact issues-help@kylin.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kylin.apache.org Delivered-To: mailing list issues@kylin.apache.org Received: (qmail 81505 invoked by uid 99); 1 Nov 2018 02:31:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Nov 2018 02:31:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 403BCC01C1 for ; Thu, 1 Nov 2018 02:31:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.5 X-Spam-Level: X-Spam-Status: No, score=-109.5 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100, WEIRD_QUOTING=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id usbu7zPuWwmf for ; Thu, 1 Nov 2018 02:31: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 1A20C5F3ED for ; Thu, 1 Nov 2018 02:31: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 964CFE0E3E for ; Thu, 1 Nov 2018 02:31: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 144F426693 for ; Thu, 1 Nov 2018 02:31:00 +0000 (UTC) Date: Thu, 1 Nov 2018 02:31:00 +0000 (UTC) From: "Shaofeng SHI (JIRA)" To: issues@kylin.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KYLIN-3644) NumberFormatExcetion on null values when building cube with 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/KYLIN-3644?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1667= 1037#comment-16671037 ]=20 Shaofeng SHI commented on KYLIN-3644: ------------------------------------- I checked the code, the spark cubing engine didn't handle NULL value well.= =C2=A0KYLIN-3520=C2=A0fixed this, I'm backing port it to 2.5.x. > NumberFormatExcetion on null values when building cube with Spark > ----------------------------------------------------------------- > > Key: KYLIN-3644 > URL: https://issues.apache.org/jira/browse/KYLIN-3644 > Project: Kylin > Issue Type: Bug > Components: Spark Engine > Affects Versions: v2.5.0 > Reporter: Hubert STEFANI > Priority: Major > Fix For: v2.5.1 > > Attachments: 00_zeppelin_notebook.jpg, 01_overview_table.jpg, 02_= dimension_cube.jpg, 03_measure_cube.jpg, sortieData.csv > > > We encounter an error any time we try to build a cube with the following = steps : > * upload a csv on AWS S3 with following characteristics : the column on = which the measure will be defined has some null values (Cf. attachment) > * create a hive table with spark > * create a model on=C2=A0 top of this table, > * create a cube with a SUM measure > * chose Spark as Engine > * Launch build > Result : The build process fails at '{color:#4383b4}#7 Step Name: {color}= Build Cube with Spark' with the following error : > =C2=A0 > """""" > 18/10/23 09:25:39 INFO scheduler.DAGScheduler: Job 0 failed: saveAsNewAPI= HadoopDataset at SparkCubingByLayer.java:253, took 7,277136 s > Exception in thread "main" java.lang.RuntimeException: error execute org.= apache.kylin.engine.spark.SparkCubingByLayer. Root cause: Job aborted due t= o stage failure: Task 0 in stage 0.0 failed 4 times, most recent failure: L= ost task 0.3 in stage 0.0 (TID 4, ip-172-31-35-113.eu-west-1.compute.intern= al, executor 4): java.lang.NumberFormatException: For input string: "\N" > =C2=A0=C2=A0=C2=A0at sun.misc.FloatingDecimal.readJavaFormatString(Float= ingDecimal.java:2043) > =C2=A0=C2=A0=C2=A0at sun.misc.FloatingDecimal.parseDouble(FloatingDecima= l.java:110) > =C2=A0=C2=A0=C2=A0at java.lang.Double.parseDouble(Double.java:538) > =C2=A0=C2=A0=C2=A0at org.apache.kylin.measure.basic.DoubleIngester.value= Of(DoubleIngester.java:38) > =C2=A0=C2=A0=C2=A0at org.apache.kylin.measure.basic.DoubleIngester.value= Of(DoubleIngester.java:28) > =C2=A0=C2=A0=C2=A0at org.apache.kylin.engine.mr.common.BaseCuboidBuilder= .buildValueOf(BaseCuboidBuilder.java:162) > =C2=A0=C2=A0=C2=A0at org.apache.kylin.engine.mr.common.BaseCuboidBuilder= .buildValueObjects(BaseCuboidBuilder.java:127) > =C2=A0=C2=A0=C2=A0at org.apache.kylin.engine.spark.SparkCubingByLayer$En= codeBaseCuboid.call(SparkCubingByLayer.java:297) > =C2=A0=C2=A0=C2=A0at org.apache.kylin.engine.spark.SparkCubingByLayer$En= codeBaseCuboid.call(SparkCubingByLayer.java:257) > =C2=A0=C2=A0=C2=A0at org.apache.spark.api.java.JavaPairRDD$$anonfun$pair= FunToScalaFun$1.apply(JavaPairRDD.scala:1043) > =C2=A0=C2=A0=C2=A0at org.apache.spark.api.java.JavaPairRDD$$anonfun$pair= FunToScalaFun$1.apply(JavaPairRDD.scala:1043) > """"" > Note 1: the build=C2=A0 process is OK when run with Map/Reduce Engine. > Note 2: the error doesn't seem to be related to AWS environment. > =C2=A0 > Sample of csv : > ID;CATEGORIE;TEL;MONTANT;MAGASIN;MATRICULE;VILLE; > 970;161;6-98-6-6-42;838.47034;Magasin_19;Client_Matricule_28;MARSEILLE; > 971;89;62-15-2-64-86;;;Client_Matricule_1;LYON; > 972;87;17-64-97-74-42;;;Client_Matricule_105;ORBEC; > 973;174;79-33-90-0-55;;Magasin_7;Client_Matricule_55;AJACCIO; > 974;172;89-95-71-6-49;141.64174;Magasin_9;Client_Matricule_105;BASTIA; > 975;83;7-27-95-28-7;897.28204;;Client_Matricule_199;AJACCIO; > 976;170;67-72-18-29-34;164.07967;Magasin_3;Client_Matricule_137;LILLE; > 977;130;14-69-4-23-27;1928.9557;Magasin_1;Client_Matricule_17;NOMNOM; > 978;43;55-91-84-98-49;891.2691;Magasin_0;Client_Matricule_22;NOMNOM; > 979;117;98-96-0-54-39;1636.3994;Magasin_9;Client_Matricule_142;MARSEILLE; > 980;163;37-55-76-53-38;;;Client_Matricule_64;NEWYORK; > 981;106;32-40-6-46-15;;Magasin_2;Client_Matricule_158;NOMNOM; > 982;56;95-60-83-89-90;;;Client_Matricule_102;NOMNOM; > 983;168;21-56-62-0-58;;;Client_Matricule_160;NOMNOM; > 984;154;92-67-37-94-60;;;Client_Matricule_137;PARIS; > =C2=A0 > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)