Forum

This topic contains 0 replies, has 1 voice, and was last updated by  khazim 2 months, 3 weeks ago.

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

    khazim
    Participant

    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 http://svn.apache.org/repos/asf/pig/trunk/ .
    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=0.4.99.0+10 ; 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:




cf22

Your Name (required)

Your Email (required)

Subject

Phone No

Your Message

Cart

  • No products in the cart.