Programming Pig

Overview

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 ...

See more details below
Paperback
$29.99
BN.com price
(Save 25%)$39.99 List Price

Pick Up In Store

Reserve and pick up in 60 minutes at your local store

Other sellers (Paperback)
  • All (15) from $17.56   
  • New (11) from $23.87   
  • Used (4) from $17.56   
Programming Pig

Available on NOOK devices and apps  
  • NOOK Devices
  • Samsung Galaxy Tab 4 NOOK
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$17.99
BN.com price
(Save 43%)$31.99 List Price

Overview

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
Read More Show Less

Product Details

  • ISBN-13: 9781449302641
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 10/20/2011
  • Edition number: 1
  • Pages: 224
  • Sales rank: 336,073
  • Product dimensions: 6.90 (w) x 9.10 (h) x 0.60 (d)

Meet the Author

Alan is an original member of the engineering team that took Pig from a Yahoo! Labs research project to a successful Apache open source project. In this role he oversaw the implementation of the language, including programming interfaces and the overall design. He has presented Pig at numerous conferences and user groups, universities, and companies. Alan is a member of the Apache Software Foundation and a co-founder of Hortonworks. He has a BS in Mathematics from Oregon State University and a MA in Theology from Fuller Theological Seminary.

Read More Show Less

Table of Contents

Preface;
Data Addiction;
Who Should Read This Book;
Conventions Used in This Book;
Code Examples in This Book;
Using Code Examples;
Safari® 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;

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)