Book Image

Apache Oozie Essentials

By : Jagat Singh
Book Image

Apache Oozie Essentials

By: Jagat Singh

Overview of this book

As more and more organizations are discovering the use of big data analytics, interest in platforms that provide storage, computation, and analytic capabilities is booming exponentially. This calls for data management. Hadoop caters to this need. Oozie fulfils this necessity for a scheduler for a Hadoop job by acting as a cron to better analyze data. Apache Oozie Essentials starts off with the basics right from installing and configuring Oozie from source code on your Hadoop cluster to managing your complex clusters. You will learn how to create data ingestion and machine learning workflows. This book is sprinkled with the examples and exercises to help you take your big data learning to the next level. You will discover how to write workflows to run your MapReduce, Pig ,Hive, and Sqoop scripts and schedule them to run at a specific time or for a specific business requirement using a coordinator. This book has engaging real-life exercises and examples to get you in the thick of things. Lastly, you’ll get a grip of how to embed Spark jobs, which can be used to run your machine learning models on Hadoop. By the end of the book, you will have a good knowledge of Apache Oozie. You will be capable of using Oozie to handle large Hadoop workflows and even improve the availability of your Hadoop environment.
Table of Contents (16 chapters)
Apache Oozie Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Rerun


Life is not perfect! Every day we have to face failures and same is with Oozie running in production. Jobs fail and we need to rerun them.

Oozie provides a functionality to restart the jobs from intermediate states to save time:

  • To rerun a Coordinator, we need to tell about the action which has failed or the date for which we need to rerun

  • To rerun a Bundle, we need to tell about Coordinator which has failed

Rerun Workflow

To rerun a Workflow that has failed, we have two nodes:

  • oozie.wf.rerun.skip.nodes

  • oozie.wf.rerun.failnodes

oozie.wf.rerun.skip.nodes is the list of nodes to skip, while oozie.wf.rerun.failnodes is a Boolean value that tells if Oozie should run only the failed nodes.

Here's an example of Workflow rerun:

oozie job -rerun 0000003-150921003038748-oozie-oozi-W -Doozie.wf.rerun.failnodes=true

In the preceding example, we passed on the ID of Workflow to rerun.

Rerun Coordinator

To rerun a Coordinator that has failed, we need to tell about the actions to rerun or tell about the...