From issues-return-180716-archive-asf-public=cust-asf.ponee.io@spark.apache.org Fri Jan 5 15:06:04 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 86EEC180647 for ; Fri, 5 Jan 2018 15:06:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7753A160C27; Fri, 5 Jan 2018 14:06:04 +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 BBC76160C19 for ; Fri, 5 Jan 2018 15:06:03 +0100 (CET) Received: (qmail 43267 invoked by uid 500); 5 Jan 2018 14:06:02 -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 43258 invoked by uid 99); 5 Jan 2018 14:06:02 -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, 05 Jan 2018 14:06:02 +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 895171A0AF8 for ; Fri, 5 Jan 2018 14:06:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.711 X-Spam-Level: X-Spam-Status: No, score=-100.711 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled 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 Bb2jfU60SUeA for ; Fri, 5 Jan 2018 14:06:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 1D7B05FAD6 for ; Fri, 5 Jan 2018 14:06: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 62387E0383 for ; Fri, 5 Jan 2018 14:06: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 22F6D240DA for ; Fri, 5 Jan 2018 14:06:00 +0000 (UTC) Date: Fri, 5 Jan 2018 14:06:00 +0000 (UTC) From: "Sean Owen (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SPARK-22969) aggregateByKey with aggregator compression MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SPARK-22969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16313160#comment-16313160 ] Sean Owen commented on SPARK-22969: ----------------------------------- Should this start as a discussion on the mailing list? doesn't seem like it's clear whether there's a change here. > aggregateByKey with aggregator compression > ------------------------------------------ > > Key: SPARK-22969 > URL: https://issues.apache.org/jira/browse/SPARK-22969 > Project: Spark > Issue Type: Question > Components: Spark Core > Affects Versions: 2.4.0 > Reporter: zhengruifeng > Priority: Minor > > I encounter a special case that the aggregator can be represented as two types: > a) high memory-footprint, but fast {{update}} > b) compact, but must be converted to type a before calling {{update}} and {{merge}}. > I wonder whether it is possible to compress the fat aggregators in {{aggregateByKey}} before shuffle, how can I impl it? [~cloud_fan] > One similar case maybe: > Using {{aggregateByKey}}/{{reduceByKey}} to compute the nnz vector (number of non-zero value) for different keys on a large sparse dataset. > We can use {{DenseVector}} as the aggregators to count the nnz, and then compress it by call {{Vector#compressed}} before send it to the network. > Another similar case maybe calling {{QuantileSummaries#compress}} before communication. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org