hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hadoop Wiki] Update of "Hive/AdminManual/Plugins" by LarryOgrodnek
Date Mon, 05 Oct 2009 21:17:22 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.

The "Hive/AdminManual/Plugins" page has been changed by LarryOgrodnek:

  == Deploying jars for User Defined Functions and User Defined SerDes ==
- Currently you need to set the classpath before starting Hive.
+ In order to start using your UDF, you first need to add the code to the classpath:
- This is done by setting {{{HIVE_AUX_JARS_PATH}}} to a directory containing your jars, or
adding a {{{hive.aux.jars.path}}} property to {{{$HIVE_HOME/conf/hive-site.xml}}}.
+ {{{
+ hive> add jar my_jar.jar;
+ Added my_jar.jar to class path
+ }}}
- It looks like there is some code coming as part of HIVE-338 that will allow you to add/remove
jars to the classpath dynamically.
+ By default, it will look in the current directory.  You can also specify a full path:
+ {{{
+ hive> add jar /tmp/my_jar.jar;
+ Added /tmp/my_jar.jar to class path
+ }}}
+ Your jar will then be on the classpath for all jobs initiated from that session.  To see
which jars have been added to the classpath you can use:
+ {{{
+ hive> list jars;
+ my_jar.jar
+ }}}

View raw message