The general schema for Hive action is as follows:
<action> <job-tracker> // Job tracker details <name-node> // Name node details <prepare> // Create or Delete directory <job-xml> // Any job xml properties <configuration> // Hadoop job configuration <script> // Hive script to run <param> // Parameters to hive script <argument> // Arguments <file> // Any files needed to run job <archive> // Any job dependencies (jar etc) </action>
Check out the location BOOK_CODE_FOLDER/xsd_svg/hive-action-0.5.svg
to see the visual representation.
Note
In the Oozie versions above v4.2, Hive action also supports running the Hive query instead of file-based script arguments.
We will start off from where we left in the previous chapter. We will persist the maximum rainfall, which we calculated in each month in...