Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 20A281779C for ; Thu, 6 Nov 2014 23:16:35 +0000 (UTC) Received: (qmail 77538 invoked by uid 500); 6 Nov 2014 23:16:34 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 77475 invoked by uid 500); 6 Nov 2014 23:16:34 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 77461 invoked by uid 500); 6 Nov 2014 23:16:34 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 77457 invoked by uid 99); 6 Nov 2014 23:16:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Nov 2014 23:16:34 +0000 Date: Thu, 6 Nov 2014 23:16:34 +0000 (UTC) From: "Jimmy Xiang (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-8621) Dump small table join data for map-join [Spark Branch] 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/HIVE-8621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jimmy Xiang updated HIVE-8621: ------------------------------ Fix Version/s: spark-branch Status: Patch Available (was: Open) > Dump small table join data for map-join [Spark Branch] > ------------------------------------------------------ > > Key: HIVE-8621 > URL: https://issues.apache.org/jira/browse/HIVE-8621 > Project: Hive > Issue Type: Sub-task > Reporter: Suhas Satish > Assignee: Jimmy Xiang > Fix For: spark-branch > > Attachments: HIVE-8621.1-spark.patch > > > This jira aims to re-use a slightly modified approach of map-reduce distributed cache in spark to dump map-joined small tables as hash tables onto spark DFS cluster. > This is a sub-task of map-join for spark > https://issues.apache.org/jira/browse/HIVE-7613 > This can use the baseline patch for map-join > https://issues.apache.org/jira/browse/HIVE-8616 > The original thought process was to use broadcast variable concept in spark, for the small tables. > The number of broadcast variables that must be created is m x n where > 'm' is the number of small tables in the (m+1) way join and n is the number of buckets of tables. If unbucketed, n=1 > But it was discovered that objects compressed with kryo serialization on disk, can occupy 20X or more when deserialized in-memory. For bucket join, the spark Driver has to hold all the buckets (for bucketed tables) in-memory (to provide for fault-tolerance against Executor failures) although the executors only need individual buckets in their memory. So the broadcast variable approach may not be the right approach. -- This message was sent by Atlassian JIRA (v6.3.4#6332)