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 5E5B318178 for ; Wed, 15 Jul 2015 01:27:06 +0000 (UTC) Received: (qmail 91217 invoked by uid 500); 15 Jul 2015 01:27:04 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 91143 invoked by uid 500); 15 Jul 2015 01:27:04 -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 91133 invoked by uid 99); 15 Jul 2015 01:27:04 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jul 2015 01:27:04 +0000 Received: from [10.200.0.184] (184-23-216-210.dedicated.static.sonic.net [184.23.216.210]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 9FF2C1A02FC for ; Wed, 15 Jul 2015 01:27:03 +0000 (UTC) User-Agent: Microsoft-MacOutlook/14.5.2.150604 Date: Tue, 14 Jul 2015 18:26:59 -0700 Subject: Re: Optimizing UDF From: Gopal Vijayaraghavan Sender: Gopal Vijayaraghavan To: "user@hive.apache.org" Message-ID: Thread-Topic: Optimizing UDF References: In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable =20 > I am already using Tez (sorry, forgot to mention this), and my goal is >indeed to build the instance once per container. Put a log line in your UDF init() and check if it is being called multiple times per container. If you=B9re loading the data everytime, then that might be something to fix. The other aspect is that there=B9s GC pauses that can happen due to that and such extraneous reasons for the slow-down. But first, look at how many times you are loading the distributed cache data per container. Cheers, Gopal