How to make a PIG UDF An Eclipse Beginners Guide…
The Java UDF ‘how to’http://pig.apache.org/docs/r0.8.1/udf.html
Simple UDF Script-- myscript.pigREGISTER myudfs.jar;A = LOAD student_data      AS (name: chararray, age: int, gpa: float);...
The simple UDF
So… let’s write this UDF…1.   Start Eclipse2.   Create a new Java Project3.   Add pig.jar as an external Jar4.   Write our...
So… let’s write this UDF…1.   Start Eclipse2.   Create a new Java Project3.   Add pig.jar as an external Jar4.   Write our...
So… let’s write this UDF…1.   Start Eclipse2.   Create a new Java Project3.   Add pig.jar as an external Jar4.   Write our...
So… let’s write this UDF…1.   Start Eclipse2.   Create a new Java Project3.   Add pig.jar as an external Jar4.   Write our...
So… let’s write this UDF…1.   Start Eclipse2.   Create a new Java Project3.   Add pig.jar as an external Jar4.   Write our...
1.   Start Eclipse write this UDF…      So… let’s2.   Create a new Java Project3.   Add pig.jar as an external Jar4.   Wri...
That’s it!www.newgrove.com
Upcoming SlideShare
Loading in …5
×

How to make a pig udf

2,585 views

Published on

How to make a pig udf
Especially for C# coders

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,585
On SlideShare
0
From Embeds
0
Number of Embeds
10
Actions
Shares
0
Downloads
42
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

How to make a pig udf

  1. 1. How to make a PIG UDF An Eclipse Beginners Guide…
  2. 2. The Java UDF ‘how to’http://pig.apache.org/docs/r0.8.1/udf.html
  3. 3. Simple UDF Script-- myscript.pigREGISTER myudfs.jar;A = LOAD student_data AS (name: chararray, age: int, gpa: float);B = FOREACH A GENERATE myudfs.UPPER(name);DUMP B;
  4. 4. The simple UDF
  5. 5. So… let’s write this UDF…1. Start Eclipse2. Create a new Java Project3. Add pig.jar as an external Jar4. Write our UDF class5. Compile to a JAR
  6. 6. So… let’s write this UDF…1. Start Eclipse2. Create a new Java Project3. Add pig.jar as an external Jar4. Write our UDF class5. Compile to a JAR
  7. 7. So… let’s write this UDF…1. Start Eclipse2. Create a new Java Project3. Add pig.jar as an external Jar4. Write our UDF class5. Compile to a JAR
  8. 8. So… let’s write this UDF…1. Start Eclipse2. Create a new Java Project3. Add pig.jar as an external Jar4. Write our UDF class5. Compile to a JAR
  9. 9. So… let’s write this UDF…1. Start Eclipse2. Create a new Java Project3. Add pig.jar as an external Jar4. Write our UDF class5. Compile to a JAR
  10. 10. 1. Start Eclipse write this UDF… So… let’s2. Create a new Java Project3. Add pig.jar as an external Jar4. Write our UDF class5. Compile to a JAR
  11. 11. That’s it!www.newgrove.com

×