Return-Path: X-Original-To: apmail-hive-user-archive@www.apache.org Delivered-To: apmail-hive-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3FAC417D50 for ; Thu, 29 Jan 2015 13:55:13 +0000 (UTC) Received: (qmail 7486 invoked by uid 500); 29 Jan 2015 13:55:12 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 7418 invoked by uid 500); 29 Jan 2015 13:55:12 -0000 Mailing-List: contact user-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hive.apache.org Delivered-To: mailing list user@hive.apache.org Received: (qmail 7408 invoked by uid 99); 29 Jan 2015 13:55:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jan 2015 13:55:12 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of muralikrishna.parimi@icloud.com designates 17.164.88.161 as permitted sender) Received: from [17.164.88.161] (HELO st13p17im-asmtp002.me.com) (17.164.88.161) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jan 2015 13:54:45 +0000 Received: from [10.59.176.240] (mobile-166-175-187-14.mycingular.net [166.175.187.14]) by st13p17im-asmtp002.me.com (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Dec 4 2014)) with ESMTPSA id <0NIX00C0OYHURI50@st13p17im-asmtp002.me.com> for user@hive.apache.org; Thu, 29 Jan 2015 13:51:31 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68,1.0.33,0.0.0000 definitions=2015-01-29_05:2015-01-29,2015-01-29,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1412080000 definitions=main-1501290140 Content-type: text/plain; charset=us-ascii MIME-version: 1.0 (1.0) Subject: Re: Partitioned table and Bucket Map Join From: murali parimi X-Mailer: iPhone Mail (12B466) In-reply-to: Date: Thu, 29 Jan 2015 07:51:31 -0600 Content-transfer-encoding: quoted-printable Message-id: <2B3C195A-7622-4309-879C-3079869E0346@icloud.com> References: To: "user@hive.apache.org" X-Virus-Checked: Checked by ClamAV on apache.org I faced the same situation where two tables with 3 billion records on each s= ide and partitioned, sorted on same key. Set the following parameters in the= hive query assuming the join will happen in the map phase.=20 set hive.input.format=3Dorg.apache.hadoop.hive.ql.io.BucketizedHiveInputForm= at; set hive.optimize.bucketmapjoin=3Dtrue; set hive.optimize.bucketmapjoin.sortedmerge=3Dtrue; set hive.enforce.sorting=3Dtrue; I am using hive version 13 and the storage format is Orc. One of the table i= s small in size but I haven't checked whether irfan fit in the cache as we h= ave huge memory. But the map sided join didn't happen. What could be the rea= son? Sent from my iPhone > On Jan 29, 2015, at 7:38 AM, matshyeq wrote: >=20 > I do have two tables partitioned on the same criteria. > Could I still take advantage of Bucket Map Join or better, Sort Merge Buck= et Map Join? > How? >=20 > ~Maciek