From issues-return-204966-archive-asf-public=cust-asf.ponee.io@spark.apache.org Tue Oct 16 11:45:10 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 A599818067C for ; Tue, 16 Oct 2018 11:45:09 +0200 (CEST) Received: (qmail 73701 invoked by uid 500); 16 Oct 2018 09:45:03 -0000 Mailing-List: contact issues-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@spark.apache.org Received: (qmail 73648 invoked by uid 99); 16 Oct 2018 09:45:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2018 09:45:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id C099E180B85 for ; Tue, 16 Oct 2018 09:45:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id mi1IX9ynTJYA for ; Tue, 16 Oct 2018 09:45: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 AE2875F387 for ; Tue, 16 Oct 2018 09:45: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 00E79E25B2 for ; Tue, 16 Oct 2018 09:45:01 +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 9EAEA24DEC for ; Tue, 16 Oct 2018 09:45:00 +0000 (UTC) Date: Tue, 16 Oct 2018 09:45:00 +0000 (UTC) From: "Jungtaek Lim (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SPARK-10816) EventTime based sessionization 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/SPARK-10816?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D166= 51404#comment-16651404 ]=20 Jungtaek Lim commented on SPARK-10816: -------------------------------------- Update: I've crafted another performance test for testing same query with d= ata pattern. [https://github.com/HeartSaVioR/iot-trucking-app-spark-structured-streaming= /tree/benchmarking-SPARK-10816] =C2=A0 I've separated packages for both data pattern=C2=A0just for simplicity. Cla= ssnames are=C2=A0same. Data pattern 1: plenty of rows in same session [https://github.com/HeartSaVioR/iot-trucking-app-spark-structured-streaming= /tree/benchmarking-SPARK-10816/src/main/scala/com/hortonworks/spark/benchma= rk/streaming/sessionwindow/plenty_of_rows_in_session] Data pattern 2: plenty of sessions [https://github.com/HeartSaVioR/iot-trucking-app-spark-structured-streaming= /tree/benchmarking-SPARK-10816/src/main/scala/com/hortonworks/spark/benchma= rk/streaming/sessionwindow/plenty_of_sessions] =C2=A0 While running benchmark with data pattern 2, I've found some performance hi= ts on my patch so made some=C2=A0fixes as well. Most of the fixes were redu= cing the number of codegen: but there's also a=C2=A0major fix:=C2=A0made pr= e-merging sessions in local partition being optional. It seriously harms th= e performance=C2=A0with data pattern 2. The patch still lacks with state sub-optimal. I guess it is now the major b= ottleneck on my patch, so wrapping my head to find good alternatives. Baidu= 's list state would be the one of, since I realized \[3] might put more del= tas as well as requires more operations. > EventTime based sessionization > ------------------------------ > > Key: SPARK-10816 > URL: https://issues.apache.org/jira/browse/SPARK-10816 > Project: Spark > Issue Type: New Feature > Components: Structured Streaming > Reporter: Reynold Xin > Priority: Major > Attachments: SPARK-10816 Support session window natively.pdf, Ses= sion Window Support For Structure Streaming.pdf > > -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org