|
|
|
@ -41,17 +41,21 @@
|
|
|
|
|
<description>the Crossref input path</description>
|
|
|
|
|
</property>
|
|
|
|
|
<property>
|
|
|
|
|
<name>crossrefTimestamp</name>
|
|
|
|
|
<description>Timestamp for the Crossref incremental Harvesting</description>
|
|
|
|
|
</property>
|
|
|
|
|
<property>
|
|
|
|
|
<name>esServer</name>
|
|
|
|
|
<description>elasticsearch server url for the Crossref Harvesting</description>
|
|
|
|
|
</property>
|
|
|
|
|
<property>
|
|
|
|
|
<name>esIndex</name>
|
|
|
|
|
<description>elasticsearch index name for the Crossref Harvesting</description>
|
|
|
|
|
<name>crossrefDumpPath</name>
|
|
|
|
|
<description>the Crossref dump path</description>
|
|
|
|
|
</property>
|
|
|
|
|
<!-- <property>-->
|
|
|
|
|
<!-- <name>crossrefTimestamp</name>-->
|
|
|
|
|
<!-- <description>Timestamp for the Crossref incremental Harvesting</description>-->
|
|
|
|
|
<!-- </property>-->
|
|
|
|
|
<!-- <property>-->
|
|
|
|
|
<!-- <name>esServer</name>-->
|
|
|
|
|
<!-- <description>elasticsearch server url for the Crossref Harvesting</description>-->
|
|
|
|
|
<!-- </property>-->
|
|
|
|
|
<!-- <property>-->
|
|
|
|
|
<!-- <name>esIndex</name>-->
|
|
|
|
|
<!-- <description>elasticsearch index name for the Crossref Harvesting</description>-->
|
|
|
|
|
<!-- </property>-->
|
|
|
|
|
|
|
|
|
|
<!-- MAG Parameters -->
|
|
|
|
|
<property>
|
|
|
|
@ -114,55 +118,104 @@
|
|
|
|
|
<message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
|
|
|
|
|
</kill>
|
|
|
|
|
|
|
|
|
|
<!-- <action name="ImportCrossRef">-->
|
|
|
|
|
<!-- <java>-->
|
|
|
|
|
<!-- <main-class>eu.dnetlib.doiboost.crossref.CrossrefImporter</main-class>-->
|
|
|
|
|
<!-- <arg>--targetPath</arg><arg>${inputPathCrossref}/index_update</arg>-->
|
|
|
|
|
<!-- <arg>--namenode</arg><arg>${nameNode}</arg>-->
|
|
|
|
|
<!-- <arg>--esServer</arg><arg>${esServer}</arg>-->
|
|
|
|
|
<!-- <arg>--esIndex</arg><arg>${esIndex}</arg>-->
|
|
|
|
|
<!-- <arg>--timestamp</arg><arg>${crossrefTimestamp}</arg>-->
|
|
|
|
|
<!-- </java>-->
|
|
|
|
|
<!-- <ok to="GenerateCrossrefDataset"/>-->
|
|
|
|
|
<!-- <error to="Kill"/>-->
|
|
|
|
|
<!-- </action>-->
|
|
|
|
|
|
|
|
|
|
<action name="ImportCrossRef">
|
|
|
|
|
<java>
|
|
|
|
|
<main-class>eu.dnetlib.doiboost.crossref.CrossrefImporter</main-class>
|
|
|
|
|
<arg>--targetPath</arg><arg>${inputPathCrossref}/index_update</arg>
|
|
|
|
|
<arg>--namenode</arg><arg>${nameNode}</arg>
|
|
|
|
|
<arg>--esServer</arg><arg>${esServer}</arg>
|
|
|
|
|
<arg>--esIndex</arg><arg>${esIndex}</arg>
|
|
|
|
|
<arg>--timestamp</arg><arg>${crossrefTimestamp}</arg>
|
|
|
|
|
<job-tracker>${jobTracker}</job-tracker>
|
|
|
|
|
<name-node>${nameNode}</name-node>
|
|
|
|
|
<main-class>eu.dnetlib.doiboost.crossref.ExtractCrossrefRecords</main-class>
|
|
|
|
|
<arg>--hdfsServerUri</arg><arg>${nameNode}</arg>
|
|
|
|
|
<arg>--crossrefFileNameTarGz</arg><arg>${crossrefDumpPath}/crossref.tar.gz</arg>
|
|
|
|
|
<arg>--workingPath</arg><arg>${crossrefDumpPath}</arg>
|
|
|
|
|
<arg>--outputPath</arg><arg>${workingDir}/files</arg>
|
|
|
|
|
</java>
|
|
|
|
|
<ok to="GenerateCrossrefDataset"/>
|
|
|
|
|
<ok to="generateCrossrefDataset"/>
|
|
|
|
|
<error to="Kill"/>
|
|
|
|
|
</action>
|
|
|
|
|
|
|
|
|
|
<action name="generateCrossrefDataset">
|
|
|
|
|
<spark xmlns="uri:oozie:spark-action:0.2">
|
|
|
|
|
<master>yarn-cluster</master>
|
|
|
|
|
<mode>cluster</mode>
|
|
|
|
|
<name>SparkGenerateCrossrefDataset</name>
|
|
|
|
|
<class>eu.dnetlib.doiboost.crossref.GenerateCrossrefDataset</class>
|
|
|
|
|
<jar>dhp-doiboost-${projectVersion}.jar</jar>
|
|
|
|
|
<spark-opts>
|
|
|
|
|
--executor-memory=${sparkExecutorMemory}
|
|
|
|
|
--executor-cores=${sparkExecutorCores}
|
|
|
|
|
--driver-memory=${sparkDriverMemory}
|
|
|
|
|
--conf spark.sql.shuffle.partitions=3840
|
|
|
|
|
--conf spark.extraListeners=${spark2ExtraListeners}
|
|
|
|
|
--conf spark.sql.queryExecutionListeners=${spark2SqlQueryExecutionListeners}
|
|
|
|
|
--conf spark.yarn.historyServer.address=${spark2YarnHistoryServerAddress}
|
|
|
|
|
--conf spark.eventLog.dir=${nameNode}${spark2EventLogDir}
|
|
|
|
|
</spark-opts>
|
|
|
|
|
<arg>--master</arg><arg>yarn-cluster</arg>
|
|
|
|
|
<arg>--sourcePath</arg><arg>${workingDir}/files/</arg>
|
|
|
|
|
<arg>--targetPath</arg><arg>${inputPathCrossref}/crossref_ds_updated</arg>
|
|
|
|
|
|
|
|
|
|
<!-- CROSSREF SECTION -->
|
|
|
|
|
</spark>
|
|
|
|
|
<ok to="removeFiles"/>
|
|
|
|
|
<error to="Kill"/>
|
|
|
|
|
</action>
|
|
|
|
|
|
|
|
|
|
<action name="GenerateCrossrefDataset">
|
|
|
|
|
<spark xmlns="uri:oozie:spark-action:0.2">
|
|
|
|
|
<master>yarn-cluster</master>
|
|
|
|
|
<mode>cluster</mode>
|
|
|
|
|
<name>GenerateCrossrefDataset</name>
|
|
|
|
|
<class>eu.dnetlib.doiboost.crossref.CrossrefDataset</class>
|
|
|
|
|
<jar>dhp-doiboost-${projectVersion}.jar</jar>
|
|
|
|
|
<spark-opts>
|
|
|
|
|
--executor-memory=${sparkExecutorMemory}
|
|
|
|
|
--executor-cores=${sparkExecutorCores}
|
|
|
|
|
--driver-memory=${sparkDriverMemory}
|
|
|
|
|
--conf spark.sql.shuffle.partitions=3840
|
|
|
|
|
--conf spark.extraListeners=${spark2ExtraListeners}
|
|
|
|
|
--conf spark.sql.queryExecutionListeners=${spark2SqlQueryExecutionListeners}
|
|
|
|
|
--conf spark.yarn.historyServer.address=${spark2YarnHistoryServerAddress}
|
|
|
|
|
--conf spark.eventLog.dir=${nameNode}${spark2EventLogDir}
|
|
|
|
|
</spark-opts>
|
|
|
|
|
<arg>--workingPath</arg><arg>${inputPathCrossref}</arg>
|
|
|
|
|
<arg>--master</arg><arg>yarn-cluster</arg>
|
|
|
|
|
</spark>
|
|
|
|
|
<ok to="RenameDataset"/>
|
|
|
|
|
<action name="removeFiles">
|
|
|
|
|
<fs>
|
|
|
|
|
<delete path="${workingDir}/files"/>
|
|
|
|
|
</fs>
|
|
|
|
|
<ok to="ResetMagWorkingPath"/>
|
|
|
|
|
<error to="Kill"/>
|
|
|
|
|
</action>
|
|
|
|
|
</action>
|
|
|
|
|
|
|
|
|
|
<action name="RenameDataset">
|
|
|
|
|
<fs>
|
|
|
|
|
<delete path="${inputPathCrossref}/crossref_ds"/>
|
|
|
|
|
<move source="${inputPathCrossref}/crossref_ds_updated"
|
|
|
|
|
target="${inputPathCrossref}/crossref_ds"/>
|
|
|
|
|
</fs>
|
|
|
|
|
<ok to="ResetMagWorkingPath"/>
|
|
|
|
|
<error to="Kill"/>
|
|
|
|
|
</action>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- CROSSREF SECTION -->
|
|
|
|
|
|
|
|
|
|
<!-- <action name="GenerateCrossrefDataset">-->
|
|
|
|
|
<!-- <spark xmlns="uri:oozie:spark-action:0.2">-->
|
|
|
|
|
<!-- <master>yarn-cluster</master>-->
|
|
|
|
|
<!-- <mode>cluster</mode>-->
|
|
|
|
|
<!-- <name>GenerateCrossrefDataset</name>-->
|
|
|
|
|
<!-- <class>eu.dnetlib.doiboost.crossref.CrossrefDataset</class>-->
|
|
|
|
|
<!-- <jar>dhp-doiboost-${projectVersion}.jar</jar>-->
|
|
|
|
|
<!-- <spark-opts>-->
|
|
|
|
|
<!-- --executor-memory=${sparkExecutorMemory}-->
|
|
|
|
|
<!-- --executor-cores=${sparkExecutorCores}-->
|
|
|
|
|
<!-- --driver-memory=${sparkDriverMemory}-->
|
|
|
|
|
<!-- --conf spark.sql.shuffle.partitions=3840-->
|
|
|
|
|
<!-- --conf spark.extraListeners=${spark2ExtraListeners}-->
|
|
|
|
|
<!-- --conf spark.sql.queryExecutionListeners=${spark2SqlQueryExecutionListeners}-->
|
|
|
|
|
<!-- --conf spark.yarn.historyServer.address=${spark2YarnHistoryServerAddress}-->
|
|
|
|
|
<!-- --conf spark.eventLog.dir=${nameNode}${spark2EventLogDir}-->
|
|
|
|
|
<!-- </spark-opts>-->
|
|
|
|
|
<!-- <arg>--workingPath</arg><arg>${inputPathCrossref}</arg>-->
|
|
|
|
|
<!-- <arg>--master</arg><arg>yarn-cluster</arg>-->
|
|
|
|
|
<!-- </spark>-->
|
|
|
|
|
<!-- <ok to="RenameDataset"/>-->
|
|
|
|
|
<!-- <error to="Kill"/>-->
|
|
|
|
|
<!-- </action>-->
|
|
|
|
|
|
|
|
|
|
<!-- <action name="RenameDataset">-->
|
|
|
|
|
<!-- <fs>-->
|
|
|
|
|
<!-- <delete path="${inputPathCrossref}/crossref_ds"/>-->
|
|
|
|
|
<!-- <move source="${inputPathCrossref}/crossref_ds_updated"-->
|
|
|
|
|
<!-- target="${inputPathCrossref}/crossref_ds"/>-->
|
|
|
|
|
<!-- </fs>-->
|
|
|
|
|
<!-- <ok to="ResetMagWorkingPath"/>-->
|
|
|
|
|
<!-- <error to="Kill"/>-->
|
|
|
|
|
<!-- </action>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|