Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Apache Oozie Essentials

You're reading from  Apache Oozie Essentials

Product type Book
Published in Dec 2015
Publisher
ISBN-13 9781785880384
Pages 164 pages
Edition 1st Edition
Languages
Author (1):
Jagat Singh Jagat Singh
Profile icon Jagat Singh

Parameters in the Dataset's input and output events


The Coordinator application runs many times during the span of start time and end time. A Coordinator action uses creation (materialization) time to find the specific Dataset instances that are required for its input and output events.

The following EL functions are used to relate the Coordinator action creation time to the Dataset instances of its input and output events.

current(int n)

The current(int n) function gives us the nth Dataset instance for a synchronous Dataset, relative to the Coordinator action creation time.

For example, current(1) represents the instance, which is calculated after adding the start time with the frequency.

In our case, current(1) of rainfall is resolved to /user/hue/learn_oozie/ch05/input/rainfall/2015/01. This was resolved at the end of month of January.

<data-in name="wf_input" dataset="rainfall">
  <instance>${coord:current(0)}</instance>
</data-in>

We can also use negative n, for example...

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}