Tamir Kamara
Wed, 10 Mar 2010 01:36:35 -0800
Hi Jeff, You are right - I want to use another jar in my own udf. Packaging both into a single jar is certainly an option but I was hoping pig would be able to do something similar to regular map-reduce where I push the jar before hand to the DFS and then add it to the class path via the distributed cache.
Thanks, Tamir On Wed, Mar 10, 2010 at 11:25 AM, Jeff Zhang <zjf...@gmail.com> wrote: > Sorry maybe I misunderstand you. It seems you'd like to use third-party > library in your udf, then you need to package your udf and third-party > library in one jar. > > > On Wed, Mar 10, 2010 at 5:21 PM, Jeff Zhang <zjf...@gmail.com> wrote: > > > Using *REGISTER myfunc.jar;* > > > > refer here: > > > http://hadoop.apache.org/pig/docs/r0.5.0/piglatin_reference.html#REGISTER > > > > > > > > On Wed, Mar 10, 2010 at 4:52 PM, Tamir Kamara <tamirkam...@gmail.com > >wrote: > > > >> Hi, > >> > >> I have a function (eval) that needs to use an external jar. > >> In M/R world this can be accomplished by uploading the jar to the dfs > and > >> using DistributedCache.addFileToClassPath. > >> How do I do the same (have the jar available for the udf) in pig? > >> > >> Thanks, > >> Tamir > >> > > > > > > > > -- > > Best Regards > > > > Jeff Zhang > > > > > > -- > Best Regards > > Jeff Zhang >