This topic contains 0 replies, has 1 voice, and was last updated by  khazim 8 months, 1 week ago.

Viewing 1 post (of 1 total)
  • Author
  • #3165 Reply


    Piggy Bank – User Defined Pig Functions

    The Piggy Bank is a place for Pig users to share their functions. The functions are contributed “as-is”. If you find a bug or if you feel a function is missing, take the time to fix it or write it yourself and contribute the changes.

    To build a jar file that contains all available user defined functions (UDFs), please follow the steps:
    Create a directory for the Pig source code: mkdir pig
    cd into that directory: cd pig
    Checkout the Pig source code: svn checkout .
    Build the project: ant
    cd into the piggybank dir: cd contrib/piggybank/java
    Build the piggybank: ant
    You should now see a piggybank.jar file in that directory.

    pig_version= ; pig_dir=/usr/lib/pig ;
    hadoop_version=0.20.1+152 ; hadoop_dir=/usr/lib/hadoop ;
    export CLASSPATH=$CLASSPATH:${hadoop_dir}/hadoop-${hadoop_version}-core.jar:${hadoop_dir}/hadoop-${hadoop_version}-tools.jar:${hadoop_dir}/hadoop-${hadoop_version}-ant.jar:${hadoop_dir}/lib/commons-logging-1.0.4.jar:${pig_dir}/pig-${pig_version}-core.jar
    export PIG_CONF_DIR=/path/to/mapred-site/and/core-site/pointing/to/your/cluster

Viewing 1 post (of 1 total)
Reply To: Piggy Bank & Application?
Your information:


Your Name (required)

Your Email (required)


Phone No

Your Message


  • No products in the cart.