pig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Pig Wiki] Update of "PigFunctions" by OlgaN
Date Thu, 10 Jan 2008 19:21:54 GMT
Dear Wiki user,

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

The following page has been changed by OlgaN:
http://wiki.apache.org/pig/PigFunctions

------------------------------------------------------------------------------
  You can use your functions following the steps below:
  
     * Put all the compiled files used by your function together into a jar file
-    * Tell Pig about that jar by the `register <udfJar>` command before using the function.
To register a UDF jar, you can either specify a full path to the jar file or you can place
the jar file in your classpath and pig will find it there. (If you are using PigLatin in embedded
mode, call `PigServer.registerJar()`).
+    * Tell Pig about that jar by the `register <udfJar>` command before using the function.
To register a UDF jar, you can either specify a full path to the jar file (`register /home/myjars/udfs.jar`)
or you can place the jar file in your classpath and pig will find it there (`register udfs.jar`).
(If you are using PigLatin in embedded mode, call `PigServer.registerJar()`).
     * Then use your function, as you would use a builtin! Its that simple.
  
  Example:

Mime
View raw message