Theplatformandinfrastructureteamatebayinc. ishappytoannouncetheopen-sourcingofOink-aself-servicesolutiontoApachePig.PigandHadoopoverviewApachePig? Isaplatformforanalyzinglargedatasets. Itusesahigh-level
The Platform and Infrastructure team at eBay Inc. is happy to announce the open-sourcing of Oink-a self-service solution to Apache Pig. Pig and Hadoop overview Apache Pig? Is a platform for analyzing large data sets. It uses a high-level
The Platform and Infrastructure team at eBay Inc. is happy to announce the open-sourcing of Oink-a self-service solution to Apache Pig.
Pig and Hadoop overview
Apache Pig? Is a platform for analyzing large data sets. it uses a high-level language for expressing data analysis programs, coupled with the infrastructure for evaluating these programs. pig merge acts the Map/Reduce paradigm, making it very easy for users to write complex tasks using Pig's language, called Pig Latin. because execution of tasks can be optimized automatically, Pig Latin allows users to focus o N semantics rather than efficiency. Another key benefit of Pig Latin is extensibility :? Users can do special-purpose processing by creating their own functions.
Apache Hadoop and Pig provide an excellent platform for extracting and analyzing data from very large application logs. at eBay, we on the Platform and Infrastructure team are responsible for storing TBs of logs that are generated every day from thousands of eBay application servers. hadoop and Pig offer us an array of tools to search and view logs and to generate reports on application behavior. as the logs are available in Hadoop, engineers (users of applications) also have the ability to use Hadoop and Pig to do custom processing, such as Pig scripting to extract useful information.
The problem
Today, Pig is primarily used through the command line to spawn jobs. this model wasn't well suited to the Platform team at eBay, as the cluster that housed the application logs was shared with other teams. this situation created a number of issues:
- Governance-In a shared-cluster scenario, governance is critically important to attain. pig scripts and requests of one customer shocould not impact those of other mers MERs and stakeholders of the cluster. in addition, providing CLI access wocould make governance difficult in terms of controlling the number of job submissions.
- Scalability-CLI access to all Pig MERs created another challenge :? Scalability. Onboarding MERs takes time and is a cumbersome process.
- Change management-No easy means existed to upgrade or modify common libraries.
Hence, we needed a solution that acted as a gateway to Pig job submission, provided QoS, and specified acted the user from cluster configuration.
The solution :? Oink
Oink solves the above challenges not only by allowing execution of Pig requests through a REST interface, but also by enabling users to register jars, view the status of Pig requests, view Pig request output, and even cancel a running Pig request. with the REST interface, the user has a cleaner way to submit Pig requests compared to CLI access. oink serves as a single point of entry for Pig requests, thereby facilitating rate limiting and QoS enforcement for different MERs.
Oink runs as a servlet inside a web container and allows users to run multiple requests in parallel within a single JVM instance. this capability was not supported initially, but rather required the help of the patch found in PIG-3866. this patch provides multi-tenant environment support so that different users can share the same instance.
With Oink, eBay's Platform and Infrastructure team has been able to onboard 100-plus different use cases onto its cluster. currently, more than 6000 Pig jobs run every day without any manual intervention from the team.
Special thanks to Vijay Samuel, Ruchir Shah, Mahesh Somani, and Raju Kolluru for open-sourcing Oink. If you have any queries related to Oink, please submit an issue through GitHub.
Original article address: Oink: Making Pig Self-Service. Thank you for sharing it with me.