forked from D-Net/dnet-hadoop
70 lines
2.6 KiB
XML
Executable File
70 lines
2.6 KiB
XML
Executable File
<workflow-app name="Indicators HIVE" xmlns="uri:oozie:workflow:0.5">
|
|
<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>
|
|
<!-- <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>-->
|
|
</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>
|
|
<!-- <property>-->
|
|
<!-- <name>hive.txn.timeout</name>-->
|
|
<!-- <value>${hive_timeout}</value>-->
|
|
<!-- </property>-->
|
|
</configuration>
|
|
</global>
|
|
|
|
<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">
|
|
<shell xmlns="uri:oozie:shell-action:0.1">
|
|
<job-tracker>${jobTracker}</job-tracker>
|
|
<name-node>${nameNode}</name-node>
|
|
<exec>indicators.sh</exec>
|
|
<argument>${stats_db_name}</argument>
|
|
<argument>${indicators_db_name}</argument>
|
|
<argument>${wf:appPath()}/scripts/Step1.sql</argument>
|
|
<file>indicators.sh</file>
|
|
</shell>
|
|
<ok to="End"/>
|
|
<error to="Kill"/>
|
|
</action>
|
|
|
|
<kill name="Kill">
|
|
<message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
|
|
</kill>
|
|
<end name="End"/>
|
|
</workflow-app> |