2020-03-18 14:27:49 +01:00
|
|
|
<workflow-app name="Create Similarity Relations" xmlns="uri:oozie:workflow:0.5">
|
|
|
|
<parameters>
|
|
|
|
<property>
|
2020-03-19 15:01:07 +01:00
|
|
|
<name>graphBasePath</name>
|
2020-03-18 14:27:49 +01:00
|
|
|
<description>the raw graph base path</description>
|
|
|
|
</property>
|
|
|
|
<property>
|
|
|
|
<name>rawSet</name>
|
|
|
|
<description>the output directory in the targetPath</description>
|
|
|
|
</property>
|
2020-03-18 17:41:56 +01:00
|
|
|
<property>
|
|
|
|
<name>isLookUpUrl</name>
|
|
|
|
<description>the address of the lookUp service</description>
|
|
|
|
</property>
|
|
|
|
<property>
|
|
|
|
<name>actionSetId</name>
|
|
|
|
<description>id of the actionSet</description>
|
|
|
|
</property>
|
2020-03-19 15:01:07 +01:00
|
|
|
<property>
|
|
|
|
<name>workingPath</name>
|
|
|
|
<description>path for the working directory</description>
|
|
|
|
</property>
|
2020-03-18 14:27:49 +01:00
|
|
|
<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>
|
|
|
|
|
2020-03-19 15:01:07 +01:00
|
|
|
<start to="DeleteWorkingPath"/>
|
2020-03-18 14:27:49 +01:00
|
|
|
|
|
|
|
<kill name="Kill">
|
|
|
|
<message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
|
|
|
|
</kill>
|
|
|
|
|
2020-03-19 15:01:07 +01:00
|
|
|
<action name="DeleteWorkingPath">
|
2020-03-18 14:27:49 +01:00
|
|
|
<fs>
|
2020-03-19 15:01:07 +01:00
|
|
|
<delete path='${workingPath}/${actionSetId}/*_simrel'/>
|
2020-03-18 14:27:49 +01:00
|
|
|
</fs>
|
|
|
|
<ok to="DuplicateScan"/>
|
|
|
|
<error to="Kill"/>
|
|
|
|
</action>
|
|
|
|
|
|
|
|
<action name="DuplicateScan">
|
|
|
|
<spark xmlns="uri:oozie:spark-action:0.2">
|
|
|
|
<job-tracker>${jobTracker}</job-tracker>
|
|
|
|
<name-node>${nameNode}</name-node>
|
|
|
|
<master>yarn-cluster</master>
|
|
|
|
<mode>cluster</mode>
|
|
|
|
<name>Create Similarity Relations</name>
|
2020-03-20 13:01:56 +01:00
|
|
|
<class>eu.dnetlib.dedup.SparkCreateSimRels</class>
|
2020-03-18 14:27:49 +01:00
|
|
|
<jar>dhp-dedup-${projectVersion}.jar</jar>
|
|
|
|
<spark-opts>--executor-memory ${sparkExecutorMemory} --executor-cores ${sparkExecutorCores}
|
|
|
|
--driver-memory=${sparkDriverMemory} --conf
|
|
|
|
spark.extraListeners="com.cloudera.spark.lineage.NavigatorAppListener" --conf
|
|
|
|
spark.sql.queryExecutionListeners="com.cloudera.spark.lineage.NavigatorQueryListener" --conf
|
|
|
|
spark.sql.warehouse.dir="/user/hive/warehouse"
|
|
|
|
</spark-opts>
|
|
|
|
<arg>-mt</arg><arg>yarn-cluster</arg>
|
2020-03-20 13:01:56 +01:00
|
|
|
<arg>--i</arg><arg>${graphBasePath}</arg>
|
2020-03-18 17:41:56 +01:00
|
|
|
<arg>--o</arg><arg>${rawSet}</arg>
|
|
|
|
<arg>--la</arg><arg>${isLookUpUrl}</arg>
|
|
|
|
<arg>--asi</arg><arg>${actionSetId}</arg>
|
2020-03-20 13:01:56 +01:00
|
|
|
<arg>--w</arg><arg>${workingPath}</arg>
|
2020-03-18 14:27:49 +01:00
|
|
|
</spark>
|
|
|
|
<ok to="End"/>
|
|
|
|
<error to="Kill"/>
|
|
|
|
</action>
|
|
|
|
|
|
|
|
<end name="End"/>
|
|
|
|
</workflow-app>
|