2021-07-23 11:40:06 +02:00
|
|
|
<workflow-app name="Resolve Relation" xmlns="uri:oozie:workflow:0.5">
|
|
|
|
<parameters>
|
|
|
|
<property>
|
2021-10-20 17:12:08 +02:00
|
|
|
<name>graphBasePath</name>
|
|
|
|
<description>the path of the graph</description>
|
2021-07-23 11:40:06 +02:00
|
|
|
</property>
|
2021-11-11 10:25:42 +01:00
|
|
|
<property>
|
|
|
|
<name>unresolvedPath</name>
|
|
|
|
<description>the path of the unresolved Entities</description>
|
|
|
|
</property>
|
2021-07-23 11:40:06 +02:00
|
|
|
</parameters>
|
|
|
|
|
2021-10-20 17:12:08 +02:00
|
|
|
<start to="ResolveRelations"/>
|
2021-07-23 11:40:06 +02:00
|
|
|
|
|
|
|
<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>
|
2021-10-20 17:12:08 +02:00
|
|
|
<class>eu.dnetlib.dhp.oa.graph.resolution.SparkResolveRelation</class>
|
2021-07-23 11:40:06 +02:00
|
|
|
<jar>dhp-graph-mapper-${projectVersion}.jar</jar>
|
|
|
|
<spark-opts>
|
|
|
|
--executor-memory=${sparkExecutorMemory}
|
|
|
|
--executor-cores=${sparkExecutorCores}
|
|
|
|
--driver-memory=${sparkDriverMemory}
|
|
|
|
--conf spark.extraListeners=${spark2ExtraListeners}
|
2021-10-28 16:18:17 +02:00
|
|
|
--conf spark.sql.shuffle.partitions=15000
|
2021-07-23 11:40:06 +02:00
|
|
|
--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>
|
2021-10-20 17:12:08 +02:00
|
|
|
<arg>--graphBasePath</arg><arg>${graphBasePath}</arg>
|
|
|
|
<arg>--workingPath</arg><arg>${workingDir}</arg>
|
2021-07-23 11:40:06 +02:00
|
|
|
</spark>
|
|
|
|
<ok to="End"/>
|
|
|
|
<error to="Kill"/>
|
|
|
|
</action>
|
2021-11-11 10:25:42 +01:00
|
|
|
|
|
|
|
<action name="ResolveEntities">
|
|
|
|
<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.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>
|
|
|
|
|
|
|
|
|
2021-07-23 11:40:06 +02:00
|
|
|
<end name="End"/>
|
|
|
|
</workflow-app>
|