52 lines
2.1 KiB
XML
52 lines
2.1 KiB
XML
<workflow-app name="Enrich_graph_with_ORCID_Workflow" xmlns="uri:oozie:workflow:0.5">
|
|
<parameters>
|
|
<property>
|
|
<name>orcidPath</name>
|
|
<description>the path of the orcid Table generated by the dump</description>
|
|
</property>
|
|
<property>
|
|
<name>graphPath</name>
|
|
<description>the path of the graph we want to apply enrichment</description>
|
|
</property>
|
|
<property>
|
|
<name>targetPath</name>
|
|
<description>the output path of the graph enriched</description>
|
|
</property>
|
|
</parameters>
|
|
|
|
<start to="EnrichGraph"/>
|
|
|
|
<kill name="Kill">
|
|
<message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
|
|
</kill>
|
|
|
|
<action name="EnrichGraph">
|
|
<spark xmlns="uri:oozie:spark-action:0.2">
|
|
<master>yarn</master>
|
|
<mode>cluster</mode>
|
|
<name>Enrich Graph with ORCID</name>
|
|
<class>eu.dnetlib.dhp.enrich.orcid.SparkEnrichGraphWithOrcidAuthors</class>
|
|
<jar>dhp-graph-mapper-${projectVersion}.jar</jar>
|
|
<spark-opts>
|
|
--executor-memory=${sparkExecutorMemory}
|
|
--executor-cores=${sparkExecutorCores}
|
|
--driver-memory=${sparkDriverMemory}
|
|
--conf spark.executor.memoryOverhead=2g
|
|
--conf spark.sql.shuffle.partitions=3000
|
|
--conf spark.extraListeners=${spark2ExtraListeners}
|
|
--conf spark.sql.queryExecutionListeners=${spark2SqlQueryExecutionListeners}
|
|
--conf spark.yarn.historyServer.address=${spark2YarnHistoryServerAddress}
|
|
--conf spark.eventLog.dir=${nameNode}${spark2EventLogDir}
|
|
</spark-opts>
|
|
<arg>--orcidPath</arg><arg>${orcidPath}</arg>
|
|
<arg>--targetPath</arg><arg>${targetPath}</arg>
|
|
<arg>--graphPath</arg><arg>${graphPath}/publication</arg>
|
|
<arg>--master</arg><arg>yarn</arg>
|
|
</spark>
|
|
<ok to="End"/>
|
|
<error to="Kill"/>
|
|
</action>
|
|
|
|
<end name="End"/>
|
|
|
|
</workflow-app> |