Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What are the basic steps to writing a UDF Function in Pig?



What are the basic steps to writing a UDF Function in Pig?..

Answer / 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

More Apache Pig Interview Questions

You have a file employee.txt in the hdfs directory with 100 records. You want to see only the first 10 records from the employee.txt file. How will you do this?

1 Answers  


How Pig programming gets converted into MapReduce jobs?

1 Answers  


What do you understand by an inner bag and outer bag in Pig?

1 Answers  


why should we use 'group' keyword in pig scripts?

1 Answers  


Explain bagtostring in pig?

1 Answers  


What is a tuple in pig?

1 Answers  


What are the data types of Pig Latin?

1 Answers  


What is a tuple?

3 Answers  


Different running modes for running Pig?

1 Answers  


Define Apache Pig?

1 Answers  


What is a relation in Pig?

1 Answers  


Differentiate between GROUP and COGROUP operators?

1 Answers  


Categories