67 lines
2.4 KiB
XML
67 lines
2.4 KiB
XML
<workflow-app name="Transformation_Workflow" xmlns="uri:oozie:workflow:0.5">
|
|
<parameters>
|
|
<property>
|
|
<name>mdstoreInputPath</name>
|
|
<description>the path of the native MDStore</description>
|
|
</property>
|
|
|
|
<property>
|
|
<name>mdstoreOutputPath</name>
|
|
<description>the path of the cleaned mdstore</description>
|
|
</property>
|
|
|
|
<property>
|
|
<name>transformationRuleTitle</name>
|
|
<description>The transformation Rule to apply</description>
|
|
</property>
|
|
|
|
<property>
|
|
<name>transformationPlugin</name>
|
|
<description>The transformation Plugin</description>
|
|
</property>
|
|
|
|
<property>
|
|
<name>dateOfTransformation</name>
|
|
<description>The timestamp of the transformation date</description>
|
|
</property>
|
|
|
|
|
|
</parameters>
|
|
|
|
<start to="TransformJob"/>
|
|
<kill name="Kill">
|
|
<message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
|
|
</kill>
|
|
|
|
<action name="TransformJob">
|
|
<spark xmlns="uri:oozie:spark-action:0.2">
|
|
<master>yarn</master>
|
|
<mode>cluster</mode>
|
|
<name>Transform MetadataStore</name>
|
|
<class>eu.dnetlib.dhp.transformation.TransformSparkJobNode</class>
|
|
<jar>dhp-aggregations-${projectVersion}.jar</jar>
|
|
<spark-opts>
|
|
--executor-memory=${sparkExecutorMemory}
|
|
--executor-cores=${sparkExecutorCores}
|
|
--driver-memory=${sparkDriverMemory}
|
|
--conf spark.extraListeners=${spark2ExtraListeners}
|
|
--conf spark.sql.queryExecutionListeners=${spark2SqlQueryExecutionListeners}
|
|
--conf spark.yarn.historyServer.address=${spark2YarnHistoryServerAddress}
|
|
--conf spark.eventLog.dir=${nameNode}${spark2EventLogDir}
|
|
</spark-opts>
|
|
<arg>--mdstoreInputPath</arg><arg>${mdstoreInputPath}</arg>
|
|
<arg>--mdstoreOutputPath</arg><arg>${mdstoreOutputPath}</arg>
|
|
<arg>--dateOfTransformation</arg><arg>${dateOfTransformation}</arg>
|
|
<arg>--transformationPlugin</arg><arg>${transformationPlugin}</arg>
|
|
<arg>--transformationRuleTitle</arg><arg>${transformationRuleTitle}</arg>
|
|
|
|
|
|
</spark>
|
|
<ok to="End"/>
|
|
<error to="Kill"/>
|
|
</action>
|
|
|
|
|
|
|
|
<end name="End"/>
|
|
</workflow-app> |