Return-Path: Delivered-To: apmail-hadoop-hive-dev-archive@minotaur.apache.org Received: (qmail 12029 invoked from network); 4 Mar 2009 05:58:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Mar 2009 05:58:17 -0000 Received: (qmail 69985 invoked by uid 500); 4 Mar 2009 05:58:17 -0000 Delivered-To: apmail-hadoop-hive-dev-archive@hadoop.apache.org Received: (qmail 69954 invoked by uid 500); 4 Mar 2009 05:58:17 -0000 Mailing-List: contact hive-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hadoop.apache.org Delivered-To: mailing list hive-dev@hadoop.apache.org Received: (qmail 69941 invoked by uid 99); 4 Mar 2009 05:58:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2009 21:58:17 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2009 05:58:16 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2EDF1234C4AF for ; Tue, 3 Mar 2009 21:57:56 -0800 (PST) Message-ID: <1140897391.1236146276190.JavaMail.jira@brutus> Date: Tue, 3 Mar 2009 21:57:56 -0800 (PST) From: "Min Zhou (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Updated: (HIVE-322) cannot create temporary udf dynamically, with a ClassNotFoundException In-Reply-To: <1240565827.1236146156195.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HIVE-322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Min Zhou updated HIVE-322: -------------------------- Description: I found the ClassLoader cannot load my UDF when doing FunctionTask, because the ClassLoader hasnot append its classpaths on-the-fly yet. The ExecDriver' s addToClassPath(String[] newPaths) method is the only entry for ClassLoader dynamically append its classhpaths (besides hadoop's GenericOptionsParser). But that function wasnot called before FunctionTask getting my UDF class by class name. I think this is the reason why I came across that failure. scenario description: I set a peroperty in hive-site.xml to configure the classpath of my udf. hive.aux.jars.path /home/hadoop/hdpsoft/hive-auxs/zhoumin.jar but failed to register it with a ClassNotFoundException when creating udf through the sql command. CREATE TEMPORARY FUNCTION strlen AS 'hadoop.hive.udf.UdfStringLength' I'll patch that soon. was: CREATE TEMPORARY FUNCTION strlen AS 'com.taobao.hadoop.hive.udf.UdfStringLength' I found the ClassLoader cannot load my UDF when doing FunctionTask, because the ClassLoader hasnot append its classpaths on-the-fly yet. The ExecDriver' s addToClassPath(String[] newPaths) method is the only entry for ClassLoader dynamically append its classhpaths (besides hadoop's GenericOptionsParser). But that function wasnot called before FunctionTask getting my UDF class by class name. I think this is the reason why I came across that failure. scenario description: I set a peroperty in hive-site.xml to configure the classpath of my udf. hive.aux.jars.path /home/hadoop/hdpsoft/hive-auxs/zhoumin.jar but failed to register it with a ClassNotFoundException when creating udf through the sql command. I'll patch that soon. > cannot create temporary udf dynamically, with a ClassNotFoundException > ----------------------------------------------------------------------- > > Key: HIVE-322 > URL: https://issues.apache.org/jira/browse/HIVE-322 > Project: Hadoop Hive > Issue Type: Bug > Components: Query Processor > Affects Versions: 0.3.0 > Reporter: Min Zhou > Priority: Blocker > > I found the ClassLoader cannot load my UDF when doing FunctionTask, because the ClassLoader hasnot append its classpaths on-the-fly yet. > The ExecDriver' s addToClassPath(String[] newPaths) method is the only entry for ClassLoader dynamically append its classhpaths (besides hadoop's GenericOptionsParser). > But that function wasnot called before FunctionTask getting my UDF class by class name. I think this is the reason why I came across that failure. > scenario description: > I set a peroperty in hive-site.xml to configure the classpath of my udf. > > hive.aux.jars.path > /home/hadoop/hdpsoft/hive-auxs/zhoumin.jar > > but failed to register it with a ClassNotFoundException when creating udf through the sql command. > CREATE TEMPORARY FUNCTION strlen AS 'hadoop.hive.udf.UdfStringLength' > I'll patch that soon. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.