72 lines
3.0 KiB
XML
72 lines
3.0 KiB
XML
<workflow-app name="Resolve relation and entities" xmlns="uri:oozie:workflow:0.5">
|
|
<parameters>
|
|
<property>
|
|
<name>graphBasePath</name>
|
|
<description>the path of the graph</description>
|
|
</property>
|
|
<property>
|
|
<name>unresolvedPath</name>
|
|
<description>the path of the unresolved Entities</description>
|
|
</property>
|
|
</parameters>
|
|
|
|
<start to="ResolveRelations"/>
|
|
|
|
<kill name="Kill">
|
|
<message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
|
|
</kill>
|
|
|
|
<action name="ResolveRelations">
|
|
<spark xmlns="uri:oozie:spark-action:0.2">
|
|
<master>yarn</master>
|
|
<mode>cluster</mode>
|
|
<name>Resolve Relations in raw graph</name>
|
|
<class>eu.dnetlib.dhp.oa.graph.resolution.SparkResolveRelation</class>
|
|
<jar>dhp-graph-mapper-${projectVersion}.jar</jar>
|
|
<spark-opts>
|
|
--executor-memory=${sparkExecutorMemory}
|
|
--executor-cores=${sparkExecutorCores}
|
|
--driver-memory=${sparkDriverMemory}
|
|
--conf spark.extraListeners=${spark2ExtraListeners}
|
|
--conf spark.sql.shuffle.partitions=15000
|
|
--conf spark.sql.queryExecutionListeners=${spark2SqlQueryExecutionListeners}
|
|
--conf spark.yarn.historyServer.address=${spark2YarnHistoryServerAddress}
|
|
--conf spark.eventLog.dir=${nameNode}${spark2EventLogDir}
|
|
</spark-opts>
|
|
<arg>--master</arg><arg>yarn</arg>
|
|
<arg>--graphBasePath</arg><arg>${graphBasePath}</arg>
|
|
<arg>--workingPath</arg><arg>${workingDir}</arg>
|
|
</spark>
|
|
<ok to="ResolveEntities"/>
|
|
<error to="Kill"/>
|
|
</action>
|
|
|
|
<action name="ResolveEntities">
|
|
<spark xmlns="uri:oozie:spark-action:0.2">
|
|
<master>yarn</master>
|
|
<mode>cluster</mode>
|
|
<name>Resolve Entities in raw graph</name>
|
|
<class>eu.dnetlib.dhp.oa.graph.resolution.SparkResolveEntities</class>
|
|
<jar>dhp-graph-mapper-${projectVersion}.jar</jar>
|
|
<spark-opts>
|
|
--executor-memory=${sparkExecutorMemory}
|
|
--executor-cores=${sparkExecutorCores}
|
|
--driver-memory=${sparkDriverMemory}
|
|
--conf spark.extraListeners=${spark2ExtraListeners}
|
|
--conf spark.sql.shuffle.partitions=10000
|
|
--conf spark.sql.queryExecutionListeners=${spark2SqlQueryExecutionListeners}
|
|
--conf spark.yarn.historyServer.address=${spark2YarnHistoryServerAddress}
|
|
--conf spark.eventLog.dir=${nameNode}${spark2EventLogDir}
|
|
</spark-opts>
|
|
<arg>--master</arg><arg>yarn</arg>
|
|
<arg>--graphBasePath</arg><arg>${graphBasePath}</arg>
|
|
<arg>--unresolvedPath</arg><arg>${unresolvedPath}</arg>
|
|
<arg>--workingPath</arg><arg>${workingDir}</arg>
|
|
</spark>
|
|
<ok to="End"/>
|
|
<error to="Kill"/>
|
|
</action>
|
|
|
|
<end name="End"/>
|
|
|
|
</workflow-app> |