Learning Cascading
eBook - ePub

Learning Cascading

Michael Covert, Victoria Loewengart

Share book
  1. 276 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Learning Cascading

Michael Covert, Victoria Loewengart

Book details
Book preview
Table of contents
Citations

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Learning Cascading an online PDF/ePUB?
Yes, you can access Learning Cascading by Michael Covert, Victoria Loewengart in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in Java. We have over one million books available in our catalogue for you to explore.

Information

Year
2015
ISBN
9781785288913

Learning Cascading


Table of Contents

Learning Cascading
Credits
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. The Big Data Core Technology Stack
Reviewing Hadoop
Hadoop architecture
HDFS – the Hadoop Distributed File System
The NameNode
The secondary NameNode
DataNodes
MapReduce execution framework
The JobTracker
The TaskTracker
Hadoop jobs
Distributed cache
Counters
YARN – MapReduce version 2
A simple MapReduce job
Beyond MapReduce
The Cascading framework
The execution graph and flow planner
How Cascading produces MapReduce jobs
Summary
2. Cascading Basics in Detail
Understanding common Cascading themes
Data flows as processes
Understanding how Cascading represents records
Using tuples and defining fields
Using a Fields object, named field groups, and selectors
Data typing and coercion
Defining schemes
Schemes in detail
TupleEntry
Understanding how Cascading controls data flow
Using pipes
Creating and chaining
Pipe operations
Each
Splitting
GroupBy and sorting
Every
Merging and joining
The Merge pipe
The join pipes – CoGroup and HashJoin
CoGroup
HashJoin
Default output selectors
Using taps
Flow
FlowConnector
Cascades
Local and Hadoop modes
Common errors
Putting it all together
Summary
3. Understanding Custom Operations
Understanding operations
Operations and fields
The Operation class and interface hierarchy
The basic operation lifecycle
Contexts
FlowProcess
OperationCall<Context>
An operation processing sequence and its methods
Operation types
Each operations
Filters
Filter calling sequence
Built-in filters
Function
Function calling sequence
Built-in functions
Every operations
Aggregator
Aggregator calling sequence
Built-in aggregators
Buffers
Buffer calling sequence
Built-in buffers
Assertions
ValueAssertion calling sequence
GroupAssertion calling sequence
AssertionLevel
Using assertions
Built-in assertions
A note about implementing BaseOperation methods
Summary
4. Creating Custom Operations
Writing custom operations
Writing a filter
Writing a function
Writing an aggregator
Writing a custom assertion
Writing a buffer
Identifying common use cases for custom operations
Putting it all together
Summary
5. Code Reuse and Integration
Creating and using subassemblies
Built-in subassemblies
Creating a new custom subassembly
Using custom subassemblies
Using cascades
Building a complex workflow using cascades
Skipping a flow in a cascade
Intermediate file management
Dynamically controlling flows
Instrumentation and counters
Using counters to control flow
Using existing MapReduce jobs
Using fluent programming techniques
The FlowDef fluent interface
Integrating external components
Flow and cascade events
Using external JAR files
Using Cascading as insulation from big data migrations and upgrades
Summary
6. Testing a Cascading Application
Debugging a Cascading application
Getting your environment ready for debugging
Using Cascading local mode debugging
Setting up Eclipse
Remote debugging
Using assertions
The Debug() filter
Managing exceptions with traps
Checkpoints
Managing bad data
Viewing flow sequencing using DOT files
Testing strategies
Unit testing and JUnit
Mocking
Integration testing
Load and performance testing
Summary
7. Optimizing the Performance of a Cascading Application
Optimizing performance
Optimizing Cascading
Optimizing Hadoop
A note about the effective use of checkpoints
Summary
8. Creating a Real-world Application in Cascading
Project description – Business Intelligence case study on monitoring the competition
Project scope – understanding requirements
Understanding the project domain – text analytics and natural language processing (NLP)
Conducting a simple named entity extraction
Defining the project – the Cascading development methodology
Project roles and responsibilities
Conducting data analysis
Performing functional decomposition
Designing the process and components
Creating and integrating the operations
Creating and using subassemblies
Building the workflow
Building flows
Managing the context
Building the cascade
Designing the test plan
Performing a unit test
Performing an integration test
Performing a cluster test
Performing a full load test
Refining and adjusting
Software packaging and delivery to the cluster
Next steps
Summary
9. Planning for Future Growth
Finding online resources
Using other Cascading tools
Lingual
Pattern
Driven
Fluid
Load
Multitool
Support for other languages
Hortonworks
Custom taps
Cascading serializers
Java open source mock frameworks
Summary
A. Downloadable Software
Contents
Installing and using
Index

Learning Cascading

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: May 2015
Production reference: 1250515
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78528-891-3
www.packtpub.com

Credits

Authors
Michael Covert
Victoria Loewengart
Reviewers
Allen Driskill
Bernie French
Supreet Oberoi
Commissioning Editor
Veena Pagare
Acquisition Editor
Vivek Anantharaman
Content Development Editor
Prachi Bisht
Technical Editors
Ruchi Desai
Ankita Thakur
Copy Editors
Sonia Michelle Cheema
Ameesha Green
Project Coordinator
Shipra Chawhan
Proofreaders
Stephen Copestake
Safis Editing
Indexer
Monica Ajmera Mehta
Graphics
Disha Haria
Production Coordinator
Nilesh R. Mohite
Cover Work
Nilesh R. Mohite

Foreword

The Cascading project was started in 2007 to complete the promise that Apache Hadoop was indirectly making to people like me—that we can dramatically simplify data-oriented application development and deployment. This can be done not only from a tools perspective, but more importantly, from an organizational perspective. Take a thousand machines and make them look like one: one storage layer and a computing layer. This promise means I would never have to ask our IT group for another storage array, more disk space, or another overpriced box to manage. My team and I could just throw our data and applications at the cluster and move on...

Table of contents