Reputation: 91
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
Reputation: 191728
Eclipse > New Maven Project.
Edit pom.xml
.
Add to dependencies
<dependency>
<groupId>org.apache.pig</groupId>
<artifactId>pig</artifactId>
<version>0.16.0</version>
</dependency>
Use Eclipse or the terminal to run mvn clean package
Copy JAR file onto Hadoop node, or HDFS.
Run REGISTER
Pig command
Use UDF
Upvotes: 0