2022-11-03 14:55:27 +01:00
<workflow-app name= "Indicators HIVE" xmlns= "uri:oozie:workflow:0.5" >
2021-06-04 15:36:35 +02:00
<parameters >
<property >
<name > stats_db_name</name>
<description > the source stats database name</description>
</property>
<property >
<name > indicators_db_name</name>
<description > the target indicators database name</description>
</property>
<property >
<name > hive_metastore_uris</name>
<description > hive server metastore URIs</description>
</property>
<property >
<name > hive_jdbc_url</name>
<description > hive server jdbc url</description>
</property>
2022-11-03 14:55:27 +01:00
<!-- <property> -->
<!-- <name>hive_timeout</name> -->
<!-- <description>the time period, in seconds, after which Hive fails a transaction if a Hive client has not sent a hearbeat. The default value is 300 seconds.</description> -->
<!-- </property> -->
2021-06-04 15:36:35 +02:00
</parameters>
<global >
<job-tracker > ${jobTracker}</job-tracker>
<name-node > ${nameNode}</name-node>
<configuration >
<property >
<name > hive.metastore.uris</name>
<value > ${hive_metastore_uris}</value>
</property>
2022-11-03 14:55:27 +01:00
<!-- <property> -->
<!-- <name>hive.txn.timeout</name> -->
<!-- <value>${hive_timeout}</value> -->
<!-- </property> -->
2021-06-04 15:36:35 +02:00
</configuration>
</global>
2022-11-03 14:55:27 +01:00
<start to= "Step1" />
<!-- <action name="Step1"> -->
<!-- <hive2 xmlns="uri:oozie:hive2 - action:0.1"> -->
<!-- <jdbc - url>${hive_jdbc_url}</jdbc - url> -->
<!-- <script>scripts/Step1.sql</script> -->
<!-- <param>stats_db_name=${stats_db_name}</param> -->
<!-- <param>indicators_db_name=${indicators_db_name}</param> -->
<!-- </hive2> -->
<!-- <ok to="End"/> -->
<!-- <error to="Kill"/> -->
<!-- </action> -->
<action name= "Step1" >
2021-07-20 09:17:29 +02:00
<shell xmlns= "uri:oozie:shell-action:0.1" >
<job-tracker > ${jobTracker}</job-tracker>
<name-node > ${nameNode}</name-node>
2022-11-03 14:55:27 +01:00
<exec > indicators.sh</exec>
2023-01-05 09:37:33 +01:00
<argument > ${stats_db_name}</argument>
<argument > ${indicators_db_name}</argument>
2022-11-03 14:55:27 +01:00
<argument > ${wf:appPath()}/scripts/Step1.sql</argument>
<file > indicators.sh</file>
2021-07-20 09:17:29 +02:00
</shell>
2021-06-04 15:36:35 +02:00
<ok to= "End" />
<error to= "Kill" />
</action>
2021-07-20 09:17:29 +02:00
2021-06-04 15:36:35 +02:00
<kill name= "Kill" >
<message > Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
</kill>
<end name= "End" />
</workflow-app>