Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 99F242004F5 for ; Sat, 12 Aug 2017 00:01:16 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 97EA516E112; Fri, 11 Aug 2017 22:01:16 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DE42116E10F for ; Sat, 12 Aug 2017 00:01:15 +0200 (CEST) Received: (qmail 78173 invoked by uid 500); 11 Aug 2017 22:01:14 -0000 Mailing-List: contact dev-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@spark.apache.org Received: (qmail 78162 invoked by uid 99); 11 Aug 2017 22:01:14 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Aug 2017 22:01:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 8476F1A04BE for ; Fri, 11 Aug 2017 22:01:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id XrXecyQz7atu for ; Fri, 11 Aug 2017 22:01:12 +0000 (UTC) Received: from mail-it0-f49.google.com (mail-it0-f49.google.com [209.85.214.49]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id E7D6C5FBBA for ; Fri, 11 Aug 2017 22:01:11 +0000 (UTC) Received: by mail-it0-f49.google.com with SMTP id m34so998957iti.1 for ; Fri, 11 Aug 2017 15:01:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=4BBAHjoNwbOmIiFm7Q5Venlq8wMm0UV7PLwre6uCgkY=; b=hPWBUmlFXPvqVnNxgw4a/mKy++kydhyZVPv7m/5MswrMDOPwWCnjh2XVQnr2b+gcvZ VRVDW3korUGh54Zzccb3IVBsFptOe2CqTzViUWsn9FFQ/X8yn7Vt/8EGi9Ky5vz4XPhH 6z3lGhGh/cW6jhrjrOFt1GgnwwPXKt0zAfMDsFhy0sCiH+2CKc7FP1wgQZ8nO62s/Fxm mHuWcmU3aSutuWlzFlx1BfTawGZ3H5DYuBvpFRb+UUpgGnmhqNhFN5vjLLv6hgpqpeuP EoPUBebmKnFgRcSkqRMjYHfz20fW3U1hHOHXeozHJFiLTJQisvJ4ueAZd8P85uMCdts5 NNHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=4BBAHjoNwbOmIiFm7Q5Venlq8wMm0UV7PLwre6uCgkY=; b=hmaxTDtaAP8ZyO8Ja7JqYo/amhPhpABZ3CVnd81qr3A7IpR0c/0uUeuofa/LjUHftT ZKDfi8wc224Y1Brckh3BE2VvV9DAvnVrFDMBKgst+ZmxPnx1FyV7fVY4yZK/cP4xm7zt fsZlrkaqb1O13nYQ1N3mRO8BtcLV39c1J0eix3CI47zs/qeBNxhoYIF093i6kXH4xCs/ yTkiqx7L1h4OmzwmbLJktoNcMlWgGpKbH0n6wD5OOhcl9Je5vadCRysw2pKoQp8NG/jx x25G+rzgeLF1+6ZZOP0O25DmWfHV+emRzj8C1SsH1qqwmuHbZm70mfIKlR7eJS4KtS3w gJ3A== X-Gm-Message-State: AHYfb5iq2leWteMDm+ADiOMRA6ali3+Bde/oVyye4YvInKQ5GCqpPCyN XUoBiYCqHlQyF+VAvUWuWBcMj0ZosUtPpm0= X-Received: by 10.36.134.5 with SMTP id u5mr173105itd.73.1502488866515; Fri, 11 Aug 2017 15:01:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.129.152 with HTTP; Fri, 11 Aug 2017 15:00:35 -0700 (PDT) From: Gerard Maas Date: Sat, 12 Aug 2017 00:00:35 +0200 Message-ID: Subject: [Structured Streaming] OOM on ConsoleSink with large inputs To: "dev@spark.apache.org" Content-Type: multipart/alternative; boundary="94eb2c0897ec2af1a60556817339" archived-at: Fri, 11 Aug 2017 22:01:16 -0000 --94eb2c0897ec2af1a60556817339 Content-Type: text/plain; charset="UTF-8" Devs, While investigating another issue, I came across this OOM error when using the Console Sink with any source that can be larger than the available driver memory. In my case, I was using the File source and I had a 14G file in the monitored dir. I traced back the issue to a `df.collect` in the Console Sink code. I created a JIRA for it: https://issues.apache.org/jira/browse/SPARK-21710 and a PR is available: https://github.com/apache/spark/pull/18923 I hope a committer can check it out. -kr, Gerard. --94eb2c0897ec2af1a60556817339 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Devs, =C2=A0

While investigating anothe= r issue, I came across this OOM error when using the Console Sink with any = source that can be larger than the available driver memory. In my case, I w= as using the File source and I had a 14G file in the monitored dir.

I traced back the issue to a `df.collect` in the Console = Sink code.

I hope a committer can check it out.
<= div>
-kr, Gerard.
--94eb2c0897ec2af1a60556817339--