You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by Apache Wiki <wi...@apache.org> on 2009/10/05 23:17:22 UTC
[Hadoop Wiki] Update of "Hive/AdminManual/Plugins" by LarryOgrodnek
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:
http://wiki.apache.org/hadoop/Hive/AdminManual/Plugins?action=diff&rev1=4&rev2=5
== 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
+ }}}
+