See http://pig.apache.org/docs/r0.10.0/basic.html#define-udfs especially the section on SHIP.
Alan. On Dec 20, 2012, at 10:01 AM, Danfeng Li wrote: > I read alot of about pig can ship a tar file and untar it before execution. > However, I couldn't find any example. Can someone provide an example? > > What I would like to do is to ship a python module, such as nltk, for my > streaming. > > Thanks. > > Dan > >