Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 324E61883E for ; Tue, 4 Aug 2015 14:14:05 +0000 (UTC) Received: (qmail 8664 invoked by uid 500); 4 Aug 2015 14:14:05 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 8636 invoked by uid 500); 4 Aug 2015 14:14:05 -0000 Mailing-List: contact issues-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 issues@hive.apache.org Received: (qmail 8615 invoked by uid 99); 4 Aug 2015 14:14:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Aug 2015 14:14:05 +0000 Date: Tue, 4 Aug 2015 14:14:05 +0000 (UTC) From: "Aihua Xu (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HIVE-11446) "Select distinct" always gives OOM error in the local run 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-11446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aihua Xu resolved HIVE-11446. ----------------------------- Resolution: Cannot Reproduce Assignee: (was: Aihua Xu) I saw this issue and then tried to debug. But it works during the debug, then after that, it also works without debug. Probably it's due to my own hadoop setup. > "Select distinct" always gives OOM error in the local run > --------------------------------------------------------- > > Key: HIVE-11446 > URL: https://issues.apache.org/jira/browse/HIVE-11446 > Project: Hive > Issue Type: Bug > Components: Hive > Affects Versions: 2.0.0 > Reporter: Aihua Xu > > {noformat} > create table src (key string); > select distinct t1.key from src t1, src t2 where t1.key=t2.key; > {noformat} > The command fails with OOM error. > {noformat} > java.lang.Exception: java.lang.OutOfMemoryError: Java heap space > at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:406) > Caused by: java.lang.OutOfMemoryError: Java heap space > at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.init(MapTask.java:826) > at org.apache.hadoop.mapred.MapTask.createSortingCollector(MapTask.java:376) > at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:406) > at org.apache.hadoop.mapred.MapTask.run(MapTask.java:332) > at org.apache.hadoop.mapred.LocalJobRunner$Job$MapTaskRunnable.run(LocalJobRunner.java:268) > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) > at java.util.concurrent.FutureTask.run(FutureTask.java:262) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:745) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)