Description
This guide is an ideal learning tool and reference for Apache Pig, the open source engine for executing parallel data flows on Hadoop. With Pig, you can batch-process data without having to create a full-fledged application—making it easy for you to experiment with new datasets.Programming Pig introduces new users to Pig, and provides experienced users with comprehensive coverage on key features such as the Pig Latin scripting language, the Grunt shell, and User Defined Functions (UDFs) for extending Pig. If you need to analyze terabytes of data, this book shows you how to do it efficiently with Pig.
* Delve into Pig’s data model, including scalar and complex data types
* Write Pig Latin scripts to sort, group, join, project, and filter your data
* Use Grunt to work with the Hadoop Distributed File System (HDFS)
* Build complex data processing pipelines with Pig’s macros and modularity features
* Embed Pig Latin in Python for iterative processing and other advanced tasks
* Create your own load and store functions to handle data formats and storage mechanisms
* Get performance tips for running scripts on Hadoop clusters in less time
CONTENTS:
Preface; Data Addiction; Who Should Read This Book; Conventions Used in This Book; Code Examples in This Book; Using Code Examples; Safari(R) Books Online; How to Contact Us; Acknowledgments; Chapter 1: Introduction; 1.1 What Is Pig?; 1.2 Pig’s History; Chapter 2: Installing and Running Pig; 2.1 Downloading and Installing Pig; 2.2 Running Pig; Chapter 3: Grunt; 3.1 Entering Pig Latin Scripts in Grunt; 3.2 HDFS Commands in Grunt; 3.3 Controlling Pig from Grunt; Chapter 4: Pig’s Data Model; 4.1 Types; 4.2 Schemas; Chapter 5: Introduction to Pig Latin; 5.1 Preliminary Matters; 5.2 Input and Output; 5.3 Relational Operations; 5.4 User Defined Functions; Chapter 6: Advanced Pig Latin; 6.1 Advanced Relational Operations; 6.2 Integrating Pig with Legacy Code and MapReduce; 6.3 Nonlinear Data Flows; 6.4 Controlling Execution; 6.5 Pig Latin Preprocessor; Chapter 7: Developing and Testing Pig Latin Scripts; 7.1 Development Tools; 7.2 Testing Your Scripts with PigUnit; Chapter 8: Making Pig Fly; 8.1 Writing Your Scripts to Perform Well; 8.2 Writing Your UDF to Perform; 8.3 Tune Pig and Hadoop for Your Job; 8.4 Using Compression in Intermediate Results; 8.5 Data Layout Optimization; 8.6 Bad Record Handling; Chapter 9: Embedding Pig Latin in Python; 9.1 Compile; 9.2 Bind; 9.3 Run; 9.4 Utility Methods; Chapter 10: Writing Evaluation and Filter Functions; 10.1 Writing an Evaluation Function in Java; 10.2 Algebraic Interface; 10.3 Accumulator Interface; 10.4 Python UDFs; 10.5 Writing Filter Functions; Chapter 11: Writing Load and Store Functions; 11.1 Load Functions; 11.2 Store Functions; Chapter 12: Pig and Other Members of the Hadoop Community; 12.1 Pig and Hive; 12.2 Cascading; 12.3 NoSQL Databases; 12.4 Metadata in Hadoop; Built-in User Defined Functions and Piggybank; Built-in UDFs; Piggybank; Overview of Hadoop; MapReduce; Hadoop Distributed File System; Colophon;
Published
07 Nov 2011
Publisher
O'REILLY & ASSOCIATES
ISBN
9781449302641
Pages
203




Static Book Details Index Page - Click Here to go to Computer Manuals Website