What are the basic steps to writing a UDF Function in Pig?
Answer Posted / Rohit Ahirwar
"To write a User Defined Function (UDF) in Pig, follow these steps: 1. Write the Java code for the function and compile it.n2. Package the compiled class into a JAR file.n3. Register the JAR file with Apache Hadoop as a custom UDF jar.n4. Use the REGISTER command to load the JAR file in Pig.n5. Call the UDF function in Pig using its fully qualified name."
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers