Shashank Tripathi
Shashank Tripathi

Reputation: 91

Integrating Pig 0.16.0 UDF with Eclipse

I am new to Pig.

Can anyone tell me how to integrate Pig UDF with Eclipse and from where to download the UDF jar file?

map reduce code works fine for me in Eclipse.

Upvotes: 1

Views: 148

Answers (1)

OneCricketeer
OneCricketeer

Reputation: 191728

  1. Eclipse > New Maven Project.

  2. Edit pom.xml. Add to dependencies

    <dependency>
        <groupId>org.apache.pig</groupId>
        <artifactId>pig</artifactId>
        <version>0.16.0</version>
    </dependency>
    
  3. Write code for a UDF

  4. Use Eclipse or the terminal to run mvn clean package

  5. Copy JAR file onto Hadoop node, or HDFS.

  6. Run REGISTER Pig command

  7. Use UDF

Upvotes: 0

Related Questions