|
|
|
@ -2,22 +2,36 @@
|
|
|
|
|
|
|
|
|
|
<parameters>
|
|
|
|
|
<property>
|
|
|
|
|
<name>betaInputGgraphPath</name>
|
|
|
|
|
<description>the beta graph root path</description>
|
|
|
|
|
<name>betaInputGraph</name>
|
|
|
|
|
<description>the beta graph name (or path)</description>
|
|
|
|
|
</property>
|
|
|
|
|
<property>
|
|
|
|
|
<name>prodInputGgraphPath</name>
|
|
|
|
|
<description>the production graph root path</description>
|
|
|
|
|
<name>prodInputGraph</name>
|
|
|
|
|
<description>the production graph name (or path)</description>
|
|
|
|
|
</property>
|
|
|
|
|
<property>
|
|
|
|
|
<name>graphOutputPath</name>
|
|
|
|
|
<description>the output merged graph root path</description>
|
|
|
|
|
<name>outputGraph</name>
|
|
|
|
|
<description>the merged graph name (or path)</description>
|
|
|
|
|
</property>
|
|
|
|
|
<property>
|
|
|
|
|
<name>priority</name>
|
|
|
|
|
<description>decides from which infrastructure the content must win in case of ID clash</description>
|
|
|
|
|
</property>
|
|
|
|
|
<property>
|
|
|
|
|
<name>inputGraphFormat</name>
|
|
|
|
|
<value>HIVE</value>
|
|
|
|
|
<description>the input graph data format</description>
|
|
|
|
|
</property>
|
|
|
|
|
<property>
|
|
|
|
|
<name>outputGraphFormat</name>
|
|
|
|
|
<value>HIVE</value>
|
|
|
|
|
<description>the output graph data format</description>
|
|
|
|
|
</property>
|
|
|
|
|
|
|
|
|
|
<property>
|
|
|
|
|
<name>hiveMetastoreUris</name>
|
|
|
|
|
<description>hive server metastore URIs</description>
|
|
|
|
|
</property>
|
|
|
|
|
<property>
|
|
|
|
|
<name>sparkDriverMemory</name>
|
|
|
|
|
<description>memory for driver process</description>
|
|
|
|
@ -52,14 +66,51 @@
|
|
|
|
|
<name>spark2EventLogDir</name>
|
|
|
|
|
<description>spark 2.* event log dir location</description>
|
|
|
|
|
</property>
|
|
|
|
|
<property>
|
|
|
|
|
<name>sparkSqlWarehouseDir</name>
|
|
|
|
|
<value>spark 2.* db directory location</value>
|
|
|
|
|
</property>
|
|
|
|
|
</parameters>
|
|
|
|
|
|
|
|
|
|
<start to="fork_merge_graph"/>
|
|
|
|
|
<start to="should_drop_db"/>
|
|
|
|
|
|
|
|
|
|
<kill name="Kill">
|
|
|
|
|
<message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
|
|
|
|
|
</kill>
|
|
|
|
|
|
|
|
|
|
<decision name="should_drop_db">
|
|
|
|
|
<switch>
|
|
|
|
|
<case to="fork_merge_graph">${wf:conf('outputGraphFormat') eq 'JSON'}</case>
|
|
|
|
|
<case to="reset_DB">${wf:conf('outputGraphFormat') eq 'HIVE'}</case>
|
|
|
|
|
<default to="reset_DB"/>
|
|
|
|
|
</switch>
|
|
|
|
|
</decision>
|
|
|
|
|
|
|
|
|
|
<action name="reset_DB">
|
|
|
|
|
<spark xmlns="uri:oozie:spark-action:0.2">
|
|
|
|
|
<master>yarn</master>
|
|
|
|
|
<mode>cluster</mode>
|
|
|
|
|
<name>reset_DB</name>
|
|
|
|
|
<class>eu.dnetlib.dhp.common.ResetHiveDbApplication</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.queryExecutionListeners=${spark2SqlQueryExecutionListeners}
|
|
|
|
|
--conf spark.yarn.historyServer.address=${spark2YarnHistoryServerAddress}
|
|
|
|
|
--conf spark.eventLog.dir=${nameNode}${spark2EventLogDir}
|
|
|
|
|
--conf spark.sql.warehouse.dir=${sparkSqlWarehouseDir}
|
|
|
|
|
--conf spark.sql.shuffle.partitions=7680
|
|
|
|
|
</spark-opts>
|
|
|
|
|
<arg>--dbName</arg><arg>${outputGraph}</arg>
|
|
|
|
|
<arg>--hiveMetastoreUris</arg><arg>${hiveMetastoreUris}</arg>
|
|
|
|
|
</spark>
|
|
|
|
|
<ok to="fork_merge_graph"/>
|
|
|
|
|
<error to="Kill"/>
|
|
|
|
|
</action>
|
|
|
|
|
|
|
|
|
|
<fork name="fork_merge_graph">
|
|
|
|
|
<path start="merge_publication"/>
|
|
|
|
|
<path start="merge_dataset"/>
|
|
|
|
@ -86,13 +137,17 @@
|
|
|
|
|
--conf spark.sql.queryExecutionListeners=${spark2SqlQueryExecutionListeners}
|
|
|
|
|
--conf spark.yarn.historyServer.address=${spark2YarnHistoryServerAddress}
|
|
|
|
|
--conf spark.eventLog.dir=${nameNode}${spark2EventLogDir}
|
|
|
|
|
--conf spark.sql.warehouse.dir=${sparkSqlWarehouseDir}
|
|
|
|
|
--conf spark.sql.shuffle.partitions=7680
|
|
|
|
|
</spark-opts>
|
|
|
|
|
<arg>--betaInputPath</arg><arg>${betaInputGgraphPath}/publication</arg>
|
|
|
|
|
<arg>--prodInputPath</arg><arg>${prodInputGgraphPath}/publication</arg>
|
|
|
|
|
<arg>--outputPath</arg><arg>${graphOutputPath}/publication</arg>
|
|
|
|
|
<arg>--betaInputGraph</arg><arg>${betaInputGraph}</arg>
|
|
|
|
|
<arg>--prodInputGraph</arg><arg>${prodInputGraph}</arg>
|
|
|
|
|
<arg>--outputGraph</arg><arg>${outputGraph}</arg>
|
|
|
|
|
<arg>--inputGraphFormat</arg><arg>${inputGraphFormat}</arg>
|
|
|
|
|
<arg>--outputGraphFormat</arg><arg>${outputGraphFormat}</arg>
|
|
|
|
|
<arg>--graphTableClassName</arg><arg>eu.dnetlib.dhp.schema.oaf.Publication</arg>
|
|
|
|
|
<arg>--priority</arg><arg>${priority}</arg>
|
|
|
|
|
<arg>--hiveMetastoreUris</arg><arg>${hiveMetastoreUris}</arg>
|
|
|
|
|
</spark>
|
|
|
|
|
<ok to="wait_merge"/>
|
|
|
|
|
<error to="Kill"/>
|
|
|
|
@ -113,13 +168,17 @@
|
|
|
|
|
--conf spark.sql.queryExecutionListeners=${spark2SqlQueryExecutionListeners}
|
|
|
|
|
--conf spark.yarn.historyServer.address=${spark2YarnHistoryServerAddress}
|
|
|
|
|
--conf spark.eventLog.dir=${nameNode}${spark2EventLogDir}
|
|
|
|
|
--conf spark.sql.warehouse.dir=${sparkSqlWarehouseDir}
|
|
|
|
|
--conf spark.sql.shuffle.partitions=7680
|
|
|
|
|
</spark-opts>
|
|
|
|
|
<arg>--betaInputPath</arg><arg>${betaInputGgraphPath}/dataset</arg>
|
|
|
|
|
<arg>--prodInputPath</arg><arg>${prodInputGgraphPath}/dataset</arg>
|
|
|
|
|
<arg>--outputPath</arg><arg>${graphOutputPath}/dataset</arg>
|
|
|
|
|
<arg>--betaInputGraph</arg><arg>${betaInputGraph}</arg>
|
|
|
|
|
<arg>--prodInputGraph</arg><arg>${prodInputGraph}</arg>
|
|
|
|
|
<arg>--outputGraph</arg><arg>${outputGraph}</arg>
|
|
|
|
|
<arg>--inputGraphFormat</arg><arg>${inputGraphFormat}</arg>
|
|
|
|
|
<arg>--outputGraphFormat</arg><arg>${outputGraphFormat}</arg>
|
|
|
|
|
<arg>--graphTableClassName</arg><arg>eu.dnetlib.dhp.schema.oaf.Dataset</arg>
|
|
|
|
|
<arg>--priority</arg><arg>${priority}</arg>
|
|
|
|
|
<arg>--hiveMetastoreUris</arg><arg>${hiveMetastoreUris}</arg>
|
|
|
|
|
</spark>
|
|
|
|
|
<ok to="wait_merge"/>
|
|
|
|
|
<error to="Kill"/>
|
|
|
|
@ -140,13 +199,17 @@
|
|
|
|
|
--conf spark.sql.queryExecutionListeners=${spark2SqlQueryExecutionListeners}
|
|
|
|
|
--conf spark.yarn.historyServer.address=${spark2YarnHistoryServerAddress}
|
|
|
|
|
--conf spark.eventLog.dir=${nameNode}${spark2EventLogDir}
|
|
|
|
|
--conf spark.sql.warehouse.dir=${sparkSqlWarehouseDir}
|
|
|
|
|
--conf spark.sql.shuffle.partitions=7680
|
|
|
|
|
</spark-opts>
|
|
|
|
|
<arg>--betaInputPath</arg><arg>${betaInputGgraphPath}/otherresearchproduct</arg>
|
|
|
|
|
<arg>--prodInputPath</arg><arg>${prodInputGgraphPath}/otherresearchproduct</arg>
|
|
|
|
|
<arg>--outputPath</arg><arg>${graphOutputPath}/otherresearchproduct</arg>
|
|
|
|
|
<arg>--betaInputGraph</arg><arg>${betaInputGraph}</arg>
|
|
|
|
|
<arg>--prodInputGraph</arg><arg>${prodInputGraph}</arg>
|
|
|
|
|
<arg>--outputGraph</arg><arg>${outputGraph}</arg>
|
|
|
|
|
<arg>--inputGraphFormat</arg><arg>${inputGraphFormat}</arg>
|
|
|
|
|
<arg>--outputGraphFormat</arg><arg>${outputGraphFormat}</arg>
|
|
|
|
|
<arg>--graphTableClassName</arg><arg>eu.dnetlib.dhp.schema.oaf.OtherResearchProduct</arg>
|
|
|
|
|
<arg>--priority</arg><arg>${priority}</arg>
|
|
|
|
|
<arg>--hiveMetastoreUris</arg><arg>${hiveMetastoreUris}</arg>
|
|
|
|
|
</spark>
|
|
|
|
|
<ok to="wait_merge"/>
|
|
|
|
|
<error to="Kill"/>
|
|
|
|
@ -167,13 +230,17 @@
|
|
|
|
|
--conf spark.sql.queryExecutionListeners=${spark2SqlQueryExecutionListeners}
|
|
|
|
|
--conf spark.yarn.historyServer.address=${spark2YarnHistoryServerAddress}
|
|
|
|
|
--conf spark.eventLog.dir=${nameNode}${spark2EventLogDir}
|
|
|
|
|
--conf spark.sql.warehouse.dir=${sparkSqlWarehouseDir}
|
|
|
|
|
--conf spark.sql.shuffle.partitions=7680
|
|
|
|
|
</spark-opts>
|
|
|
|
|
<arg>--betaInputPath</arg><arg>${betaInputGgraphPath}/software</arg>
|
|
|
|
|
<arg>--prodInputPath</arg><arg>${prodInputGgraphPath}/software</arg>
|
|
|
|
|
<arg>--outputPath</arg><arg>${graphOutputPath}/software</arg>
|
|
|
|
|
<arg>--betaInputGraph</arg><arg>${betaInputGraph}</arg>
|
|
|
|
|
<arg>--prodInputGraph</arg><arg>${prodInputGraph}</arg>
|
|
|
|
|
<arg>--outputGraph</arg><arg>${outputGraph}</arg>
|
|
|
|
|
<arg>--inputGraphFormat</arg><arg>${inputGraphFormat}</arg>
|
|
|
|
|
<arg>--outputGraphFormat</arg><arg>${outputGraphFormat}</arg>
|
|
|
|
|
<arg>--graphTableClassName</arg><arg>eu.dnetlib.dhp.schema.oaf.Software</arg>
|
|
|
|
|
<arg>--priority</arg><arg>${priority}</arg>
|
|
|
|
|
<arg>--hiveMetastoreUris</arg><arg>${hiveMetastoreUris}</arg>
|
|
|
|
|
</spark>
|
|
|
|
|
<ok to="wait_merge"/>
|
|
|
|
|
<error to="Kill"/>
|
|
|
|
@ -194,13 +261,17 @@
|
|
|
|
|
--conf spark.sql.queryExecutionListeners=${spark2SqlQueryExecutionListeners}
|
|
|
|
|
--conf spark.yarn.historyServer.address=${spark2YarnHistoryServerAddress}
|
|
|
|
|
--conf spark.eventLog.dir=${nameNode}${spark2EventLogDir}
|
|
|
|
|
--conf spark.sql.warehouse.dir=${sparkSqlWarehouseDir}
|
|
|
|
|
--conf spark.sql.shuffle.partitions=7680
|
|
|
|
|
</spark-opts>
|
|
|
|
|
<arg>--betaInputPath</arg><arg>${betaInputGgraphPath}/datasource</arg>
|
|
|
|
|
<arg>--prodInputPath</arg><arg>${prodInputGgraphPath}/datasource</arg>
|
|
|
|
|
<arg>--outputPath</arg><arg>${graphOutputPath}/datasource</arg>
|
|
|
|
|
<arg>--betaInputGraph</arg><arg>${betaInputGraph}</arg>
|
|
|
|
|
<arg>--prodInputGraph</arg><arg>${prodInputGraph}</arg>
|
|
|
|
|
<arg>--outputGraph</arg><arg>${outputGraph}</arg>
|
|
|
|
|
<arg>--inputGraphFormat</arg><arg>${inputGraphFormat}</arg>
|
|
|
|
|
<arg>--outputGraphFormat</arg><arg>${outputGraphFormat}</arg>
|
|
|
|
|
<arg>--graphTableClassName</arg><arg>eu.dnetlib.dhp.schema.oaf.Datasource</arg>
|
|
|
|
|
<arg>--priority</arg><arg>${priority}</arg>
|
|
|
|
|
<arg>--hiveMetastoreUris</arg><arg>${hiveMetastoreUris}</arg>
|
|
|
|
|
</spark>
|
|
|
|
|
<ok to="wait_merge"/>
|
|
|
|
|
<error to="Kill"/>
|
|
|
|
@ -221,13 +292,17 @@
|
|
|
|
|
--conf spark.sql.queryExecutionListeners=${spark2SqlQueryExecutionListeners}
|
|
|
|
|
--conf spark.yarn.historyServer.address=${spark2YarnHistoryServerAddress}
|
|
|
|
|
--conf spark.eventLog.dir=${nameNode}${spark2EventLogDir}
|
|
|
|
|
--conf spark.sql.warehouse.dir=${sparkSqlWarehouseDir}
|
|
|
|
|
--conf spark.sql.shuffle.partitions=7680
|
|
|
|
|
</spark-opts>
|
|
|
|
|
<arg>--betaInputPath</arg><arg>${betaInputGgraphPath}/organization</arg>
|
|
|
|
|
<arg>--prodInputPath</arg><arg>${prodInputGgraphPath}/organization</arg>
|
|
|
|
|
<arg>--outputPath</arg><arg>${graphOutputPath}/organization</arg>
|
|
|
|
|
<arg>--betaInputGraph</arg><arg>${betaInputGraph}</arg>
|
|
|
|
|
<arg>--prodInputGraph</arg><arg>${prodInputGraph}</arg>
|
|
|
|
|
<arg>--outputGraph</arg><arg>${outputGraph}</arg>
|
|
|
|
|
<arg>--inputGraphFormat</arg><arg>${inputGraphFormat}</arg>
|
|
|
|
|
<arg>--outputGraphFormat</arg><arg>${outputGraphFormat}</arg>
|
|
|
|
|
<arg>--graphTableClassName</arg><arg>eu.dnetlib.dhp.schema.oaf.Organization</arg>
|
|
|
|
|
<arg>--priority</arg><arg>${priority}</arg>
|
|
|
|
|
<arg>--hiveMetastoreUris</arg><arg>${hiveMetastoreUris}</arg>
|
|
|
|
|
</spark>
|
|
|
|
|
<ok to="wait_merge"/>
|
|
|
|
|
<error to="Kill"/>
|
|
|
|
@ -248,13 +323,17 @@
|
|
|
|
|
--conf spark.sql.queryExecutionListeners=${spark2SqlQueryExecutionListeners}
|
|
|
|
|
--conf spark.yarn.historyServer.address=${spark2YarnHistoryServerAddress}
|
|
|
|
|
--conf spark.eventLog.dir=${nameNode}${spark2EventLogDir}
|
|
|
|
|
--conf spark.sql.warehouse.dir=${sparkSqlWarehouseDir}
|
|
|
|
|
--conf spark.sql.shuffle.partitions=7680
|
|
|
|
|
</spark-opts>
|
|
|
|
|
<arg>--betaInputPath</arg><arg>${betaInputGgraphPath}/project</arg>
|
|
|
|
|
<arg>--prodInputPath</arg><arg>${prodInputGgraphPath}/project</arg>
|
|
|
|
|
<arg>--outputPath</arg><arg>${graphOutputPath}/project</arg>
|
|
|
|
|
<arg>--betaInputGraph</arg><arg>${betaInputGraph}</arg>
|
|
|
|
|
<arg>--prodInputGraph</arg><arg>${prodInputGraph}</arg>
|
|
|
|
|
<arg>--outputGraph</arg><arg>${outputGraph}</arg>
|
|
|
|
|
<arg>--inputGraphFormat</arg><arg>${inputGraphFormat}</arg>
|
|
|
|
|
<arg>--outputGraphFormat</arg><arg>${outputGraphFormat}</arg>
|
|
|
|
|
<arg>--graphTableClassName</arg><arg>eu.dnetlib.dhp.schema.oaf.Project</arg>
|
|
|
|
|
<arg>--priority</arg><arg>${priority}</arg>
|
|
|
|
|
<arg>--hiveMetastoreUris</arg><arg>${hiveMetastoreUris}</arg>
|
|
|
|
|
</spark>
|
|
|
|
|
<ok to="wait_merge"/>
|
|
|
|
|
<error to="Kill"/>
|
|
|
|
@ -275,13 +354,17 @@
|
|
|
|
|
--conf spark.sql.queryExecutionListeners=${spark2SqlQueryExecutionListeners}
|
|
|
|
|
--conf spark.yarn.historyServer.address=${spark2YarnHistoryServerAddress}
|
|
|
|
|
--conf spark.eventLog.dir=${nameNode}${spark2EventLogDir}
|
|
|
|
|
--conf spark.sql.warehouse.dir=${sparkSqlWarehouseDir}
|
|
|
|
|
--conf spark.sql.shuffle.partitions=7680
|
|
|
|
|
</spark-opts>
|
|
|
|
|
<arg>--betaInputPath</arg><arg>${betaInputGgraphPath}/relation</arg>
|
|
|
|
|
<arg>--prodInputPath</arg><arg>${prodInputGgraphPath}/relation</arg>
|
|
|
|
|
<arg>--outputPath</arg><arg>${graphOutputPath}/relation</arg>
|
|
|
|
|
<arg>--betaInputGraph</arg><arg>${betaInputGraph}</arg>
|
|
|
|
|
<arg>--prodInputGraph</arg><arg>${prodInputGraph}</arg>
|
|
|
|
|
<arg>--outputGraph</arg><arg>${outputGraph}</arg>
|
|
|
|
|
<arg>--inputGraphFormat</arg><arg>${inputGraphFormat}</arg>
|
|
|
|
|
<arg>--outputGraphFormat</arg><arg>${outputGraphFormat}</arg>
|
|
|
|
|
<arg>--graphTableClassName</arg><arg>eu.dnetlib.dhp.schema.oaf.Relation</arg>
|
|
|
|
|
<arg>--priority</arg><arg>${priority}</arg>
|
|
|
|
|
<arg>--hiveMetastoreUris</arg><arg>${hiveMetastoreUris}</arg>
|
|
|
|
|
</spark>
|
|
|
|
|
<ok to="wait_merge"/>
|
|
|
|
|
<error to="Kill"/>
|
|
|
|
|