Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Learning Cascading

You're reading from  Learning Cascading

Product type Book
Published in May 2015
Publisher
ISBN-13 9781785288913
Pages 276 pages
Edition 1st Edition
Languages

Dynamically controlling flows


One interesting aspect of Cascading is that flows can be dynamically controlled. Other similar languages and paradigms such as Pig and Hive allow a high degree of programmability, but their defined work runs from beginning to end, with no ability to control the execution flow through examination of data or conditions. With Cascading, program control can be used to alter the processing of a flow, to run it multiple times, to prevent it from running, or to programmatically control the very sequence and choice of flows that run. This is an important feature of Cascading and differentiates it from many other higher level frameworks. So the dynamic control of a flow is a "programmable" ability to run one or more flows iteratively, or alternately to control the sequence of execution. For instance:

  1. In a loop, run a flow.

  2. Check the status when the flow ends.

  3. Decide whether to run the flow again. Alternately, based on the outcome, determine which flow to run next.

  4. End when...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}