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 77FB7200C32 for ; Thu, 9 Mar 2017 09:47:49 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 76927160B67; Thu, 9 Mar 2017 08:47:49 +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 BE65E160B64 for ; Thu, 9 Mar 2017 09:47:48 +0100 (CET) Received: (qmail 24477 invoked by uid 500); 9 Mar 2017 08:47:48 -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 24468 invoked by uid 99); 9 Mar 2017 08:47:47 -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; Thu, 09 Mar 2017 08:47:47 +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 793EA1A080A for ; Thu, 9 Mar 2017 08:47:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.651 X-Spam-Level: X-Spam-Status: No, score=0.651 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id AjjWuE7tEMkF for ; Thu, 9 Mar 2017 08:47:46 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 0957A618A4 for ; Thu, 9 Mar 2017 08:47:41 +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 54D62E086A for ; Thu, 9 Mar 2017 08:47:38 +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 0DA40243AA for ; Thu, 9 Mar 2017 08:47:38 +0000 (UTC) Date: Thu, 9 Mar 2017 08:47:38 +0000 (UTC) From: "Premal Shah (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HIVE-15105) Hive shell runs out of memory on Tez MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 09 Mar 2017 08:47:49 -0000 [ https://issues.apache.org/jira/browse/HIVE-15105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Premal Shah resolved HIVE-15105. -------------------------------- Resolution: Fixed Release Note: Once DEBUG logging was turned off, the memory issue was resolved. > Hive shell runs out of memory on Tez > ------------------------------------ > > Key: HIVE-15105 > URL: https://issues.apache.org/jira/browse/HIVE-15105 > Project: Hive > Issue Type: Bug > Components: Tez > Affects Versions: 2.0.1 > Reporter: Premal Shah > > Hive 2.0.1 > Hadoop 2.7.2 > Tex 0.8.4 > We have a UDF in hive which take in some values and outputs a score. When running a query on a table which calls the score function on every row, looks like tez is not running the query on YARN, but trying to run it in local mode. It then runs out of memory trying to insert that data into a table. > Here's the query > {noformat} > ADD JAR score.jar; > CREATE TEMPORARY FUNCTION score AS 'hive.udf.ScoreUDF'; > CREATE TABLE abc AS > SELECT > id, > score(col1, col2) as score > , '2016-10-11' AS dt > FROM input_table > ; > {noformat} > Here's the output of the shell > {noformat} > Query ID = hadoop_20161028232841_5a06db96-ffaa-4e75-a657-c7cb46ccb3f5 > Total jobs = 1 > Launching Job 1 out of 1 > java.lang.OutOfMemoryError: Java heap space > at java.util.Arrays.copyOf(Arrays.java:3332) > at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:137) > at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:121) > at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:622) > at java.lang.StringBuilder.append(StringBuilder.java:202) > at com.google.protobuf.TextFormat.escapeBytes(TextFormat.java:1283) > at com.google.protobuf.TextFormat$Printer.printFieldValue(TextFormat.java:394) > at com.google.protobuf.TextFormat$Printer.printSingleField(TextFormat.java:327) > at com.google.protobuf.TextFormat$Printer.printField(TextFormat.java:286) > at com.google.protobuf.TextFormat$Printer.print(TextFormat.java:273) > at com.google.protobuf.TextFormat$Printer.printFieldValue(TextFormat.java:404) > at com.google.protobuf.TextFormat$Printer.printSingleField(TextFormat.java:327) > at com.google.protobuf.TextFormat$Printer.printField(TextFormat.java:286) > at com.google.protobuf.TextFormat$Printer.print(TextFormat.java:273) > at com.google.protobuf.TextFormat$Printer.printFieldValue(TextFormat.java:404) > at com.google.protobuf.TextFormat$Printer.printSingleField(TextFormat.java:327) > at com.google.protobuf.TextFormat$Printer.printField(TextFormat.java:286) > at com.google.protobuf.TextFormat$Printer.print(TextFormat.java:273) > at com.google.protobuf.TextFormat$Printer.printFieldValue(TextFormat.java:404) > at com.google.protobuf.TextFormat$Printer.printSingleField(TextFormat.java:327) > at com.google.protobuf.TextFormat$Printer.printField(TextFormat.java:283) > at com.google.protobuf.TextFormat$Printer.print(TextFormat.java:273) > at com.google.protobuf.TextFormat$Printer.printFieldValue(TextFormat.java:404) > at com.google.protobuf.TextFormat$Printer.printSingleField(TextFormat.java:327) > at com.google.protobuf.TextFormat$Printer.printField(TextFormat.java:283) > at com.google.protobuf.TextFormat$Printer.print(TextFormat.java:273) > at com.google.protobuf.TextFormat$Printer.printFieldValue(TextFormat.java:404) > at com.google.protobuf.TextFormat$Printer.printSingleField(TextFormat.java:327) > at com.google.protobuf.TextFormat$Printer.printField(TextFormat.java:286) > at com.google.protobuf.TextFormat$Printer.print(TextFormat.java:273) > at com.google.protobuf.TextFormat$Printer.access$400(TextFormat.java:248) > at com.google.protobuf.TextFormat.shortDebugString(TextFormat.java:88) > FAILED: Execution Error, return code -101 from org.apache.hadoop.hive.ql.exec.tez.TezTask. Java heap space > {noformat} > It looks like the job is not getting submitted to the cluster, but running locally. We can't get tez to run the query on the cluster. > The hive shell starts with an Xmx of 4G. > If I set hive.execution.engine = mr, then the query works, because it runs on the hadoop cluster. -- This message was sent by Atlassian JIRA (v6.3.15#6346)