55 lines
1.9 KiB
XML
55 lines
1.9 KiB
XML
<workflow-app name="import UnpayWall into HDFS" xmlns="uri:oozie:workflow:0.5">
|
|
<parameters>
|
|
<property>
|
|
<name>sourcePath</name>
|
|
<description>the working dir base path</description>
|
|
</property>
|
|
<property>
|
|
<name>targetPath</name>
|
|
<description>the working dir base path</description>
|
|
</property>
|
|
<property>
|
|
<name>sparkDriverMemory</name>
|
|
<description>memory for driver process</description>
|
|
</property>
|
|
<property>
|
|
<name>sparkExecutorMemory</name>
|
|
<description>memory for individual executor</description>
|
|
</property>
|
|
<property>
|
|
<name>sparkExecutorCores</name>
|
|
<description>number of cores used by single executor</description>
|
|
</property>
|
|
</parameters>
|
|
|
|
<start to="PreprocessUW"/>
|
|
|
|
|
|
<kill name="Kill">
|
|
<message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
|
|
</kill>
|
|
|
|
<action name="PreprocessUW">
|
|
<spark xmlns="uri:oozie:spark-action:0.2">
|
|
<master>yarn-cluster</master>
|
|
<mode>cluster</mode>
|
|
<name>Convert UnpayWall to Dataset</name>
|
|
<class>eu.dnetlib.doiboost.uw.SparkMapUnpayWallToOAF</class>
|
|
<jar>dhp-doiboost-${projectVersion}.jar</jar>
|
|
<spark-opts>
|
|
--executor-memory=${sparkExecutorMemory}
|
|
--executor-cores=${sparkExecutorCores}
|
|
--driver-memory=${sparkDriverMemory}
|
|
--conf spark.sql.shuffle.partitions=3840
|
|
${sparkExtraOPT}
|
|
</spark-opts>
|
|
<arg>--sourcePath</arg><arg>${sourcePath}/uw_extracted</arg>
|
|
<arg>--targetPath</arg><arg>${targetPath}</arg>
|
|
<arg>--master</arg><arg>yarn-cluster</arg>
|
|
</spark>
|
|
<ok to="End"/>
|
|
<error to="Kill"/>
|
|
</action>
|
|
|
|
<end name="End"/>
|
|
</workflow-app> |