How to make a pig udf

  • 1,294 views
Uploaded on

How to make a pig udf …

How to make a pig udf
Especially for C# coders

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,294
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
23
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. How to make a PIG UDF An Eclipse Beginners Guide…
  • 2. The Java UDF ‘how to’http://pig.apache.org/docs/r0.8.1/udf.html
  • 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. The simple UDF
  • 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. 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. 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. 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. 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. 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. That’s it!www.newgrove.com