|
|
|
@ -51,6 +51,22 @@
|
|
|
|
|
<name>spark2EventLogDir</name>
|
|
|
|
|
<description>spark 2.* event log dir location</description>
|
|
|
|
|
</property>
|
|
|
|
|
<!-- General oozie workflow properties -->
|
|
|
|
|
<property>
|
|
|
|
|
<name>sparkClusterOpts</name>
|
|
|
|
|
<value>--conf spark.network.timeout=600 --conf spark.extraListeners= --conf spark.sql.queryExecutionListeners= --conf spark.yarn.historyServer.address=http://iis-cdh5-test-m3.ocean.icm.edu.pl:18088 --conf spark.eventLog.dir=hdfs://nameservice1/user/spark/applicationHistory</value>
|
|
|
|
|
<description>spark cluster-wide options</description>
|
|
|
|
|
</property>
|
|
|
|
|
<property>
|
|
|
|
|
<name>sparkResourceOpts</name>
|
|
|
|
|
<value>--executor-memory=3G --conf spark.executor.memoryOverhead=3G --executor-cores=6 --driver-memory=8G --driver-cores=4</value>
|
|
|
|
|
<description>spark resource options</description>
|
|
|
|
|
</property>
|
|
|
|
|
<property>
|
|
|
|
|
<name>sparkApplicationOpts</name>
|
|
|
|
|
<value>--conf spark.sql.shuffle.partitions=3840</value>
|
|
|
|
|
<description>spark resource options</description>
|
|
|
|
|
</property>
|
|
|
|
|
</parameters>
|
|
|
|
|
|
|
|
|
|
<global>
|
|
|
|
@ -90,285 +106,32 @@
|
|
|
|
|
<script>lib/scripts/reset_db.sql</script>
|
|
|
|
|
<param>hiveDbName=${hiveDbName}</param>
|
|
|
|
|
</hive2>
|
|
|
|
|
<ok to="fork_import"/>
|
|
|
|
|
<ok to="import_graph"/>
|
|
|
|
|
<error to="Kill"/>
|
|
|
|
|
</action>
|
|
|
|
|
|
|
|
|
|
<fork name="fork_import">
|
|
|
|
|
<path start="import_publication"/>
|
|
|
|
|
<path start="import_dataset"/>
|
|
|
|
|
<path start="import_orp"/>
|
|
|
|
|
<path start="import_software"/>
|
|
|
|
|
<path start="import_datasource"/>
|
|
|
|
|
<path start="import_organization"/>
|
|
|
|
|
<path start="import_project"/>
|
|
|
|
|
<path start="import_person"/>
|
|
|
|
|
<path start="import_relation"/>
|
|
|
|
|
</fork>
|
|
|
|
|
|
|
|
|
|
<action name="import_publication">
|
|
|
|
|
<action name="import_graph">
|
|
|
|
|
<spark xmlns="uri:oozie:spark-action:0.2">
|
|
|
|
|
<master>yarn</master>
|
|
|
|
|
<mode>cluster</mode>
|
|
|
|
|
<name>Import table publication</name>
|
|
|
|
|
<class>eu.dnetlib.dhp.oa.graph.hive.GraphHiveTableImporterJob</class>
|
|
|
|
|
<name>Import graph tables into Hive</name>
|
|
|
|
|
<class>eu.dnetlib.dhp.oozie.RunSQLSparkJob</class>
|
|
|
|
|
<jar>dhp-graph-mapper-${projectVersion}.jar</jar>
|
|
|
|
|
<spark-opts>
|
|
|
|
|
--executor-memory=${sparkExecutorMemory}
|
|
|
|
|
--executor-cores=${sparkExecutorCores}
|
|
|
|
|
--driver-memory=${sparkDriverMemory}
|
|
|
|
|
--conf spark.executor.memoryOverhead=${sparkExecutorMemory}
|
|
|
|
|
--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=10000
|
|
|
|
|
${sparkClusterOpts}
|
|
|
|
|
${sparkResourceOpts}
|
|
|
|
|
${sparkApplicationOpts}
|
|
|
|
|
</spark-opts>
|
|
|
|
|
<arg>--inputPath</arg><arg>${inputPath}/publication</arg>
|
|
|
|
|
<arg>--hiveDbName</arg><arg>${hiveDbName}</arg>
|
|
|
|
|
<arg>--className</arg><arg>eu.dnetlib.dhp.schema.oaf.Publication</arg>
|
|
|
|
|
<arg>--hiveMetastoreUris</arg><arg>${hiveMetastoreUris}</arg>
|
|
|
|
|
<arg>--numPartitions</arg><arg>10000</arg>
|
|
|
|
|
<arg>--sql</arg><arg>eu/dnetlib/dhp/oa/graph/hive/oozie_app/lib/scripts/import_graph.sql</arg>
|
|
|
|
|
<arg>--hiveDbName</arg><arg>${hiveDbName}</arg>
|
|
|
|
|
<arg>--inputPath</arg><arg>${inputPath}</arg>
|
|
|
|
|
</spark>
|
|
|
|
|
<ok to="join_import"/>
|
|
|
|
|
<ok to="PostProcessing"/>
|
|
|
|
|
<error to="Kill"/>
|
|
|
|
|
</action>
|
|
|
|
|
|
|
|
|
|
<action name="import_dataset">
|
|
|
|
|
<spark xmlns="uri:oozie:spark-action:0.2">
|
|
|
|
|
<master>yarn</master>
|
|
|
|
|
<mode>cluster</mode>
|
|
|
|
|
<name>Import table dataset</name>
|
|
|
|
|
<class>eu.dnetlib.dhp.oa.graph.hive.GraphHiveTableImporterJob</class>
|
|
|
|
|
<jar>dhp-graph-mapper-${projectVersion}.jar</jar>
|
|
|
|
|
<spark-opts>
|
|
|
|
|
--executor-memory=${sparkExecutorMemory}
|
|
|
|
|
--executor-cores=${sparkExecutorCores}
|
|
|
|
|
--driver-memory=${sparkDriverMemory}
|
|
|
|
|
--conf spark.executor.memoryOverhead=${sparkExecutorMemory}
|
|
|
|
|
--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=4000
|
|
|
|
|
</spark-opts>
|
|
|
|
|
<arg>--inputPath</arg><arg>${inputPath}/dataset</arg>
|
|
|
|
|
<arg>--hiveDbName</arg><arg>${hiveDbName}</arg>
|
|
|
|
|
<arg>--className</arg><arg>eu.dnetlib.dhp.schema.oaf.Dataset</arg>
|
|
|
|
|
<arg>--hiveMetastoreUris</arg><arg>${hiveMetastoreUris}</arg>
|
|
|
|
|
<arg>--numPartitions</arg><arg>8000</arg>
|
|
|
|
|
</spark>
|
|
|
|
|
<ok to="join_import"/>
|
|
|
|
|
<error to="Kill"/>
|
|
|
|
|
</action>
|
|
|
|
|
|
|
|
|
|
<action name="import_orp">
|
|
|
|
|
<spark xmlns="uri:oozie:spark-action:0.2">
|
|
|
|
|
<master>yarn</master>
|
|
|
|
|
<mode>cluster</mode>
|
|
|
|
|
<name>Import table otherresearchproduct</name>
|
|
|
|
|
<class>eu.dnetlib.dhp.oa.graph.hive.GraphHiveTableImporterJob</class>
|
|
|
|
|
<jar>dhp-graph-mapper-${projectVersion}.jar</jar>
|
|
|
|
|
<spark-opts>
|
|
|
|
|
--executor-memory=${sparkExecutorMemory}
|
|
|
|
|
--executor-cores=${sparkExecutorCores}
|
|
|
|
|
--driver-memory=${sparkDriverMemory}
|
|
|
|
|
--conf spark.executor.memoryOverhead=${sparkExecutorMemory}
|
|
|
|
|
--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=8000
|
|
|
|
|
</spark-opts>
|
|
|
|
|
<arg>--inputPath</arg><arg>${inputPath}/otherresearchproduct</arg>
|
|
|
|
|
<arg>--hiveDbName</arg><arg>${hiveDbName}</arg>
|
|
|
|
|
<arg>--className</arg><arg>eu.dnetlib.dhp.schema.oaf.OtherResearchProduct</arg>
|
|
|
|
|
<arg>--hiveMetastoreUris</arg><arg>${hiveMetastoreUris}</arg>
|
|
|
|
|
<arg>--numPartitions</arg><arg>3000</arg>
|
|
|
|
|
</spark>
|
|
|
|
|
<ok to="join_import"/>
|
|
|
|
|
<error to="Kill"/>
|
|
|
|
|
</action>
|
|
|
|
|
|
|
|
|
|
<action name="import_software">
|
|
|
|
|
<spark xmlns="uri:oozie:spark-action:0.2">
|
|
|
|
|
<master>yarn</master>
|
|
|
|
|
<mode>cluster</mode>
|
|
|
|
|
<name>Import table software</name>
|
|
|
|
|
<class>eu.dnetlib.dhp.oa.graph.hive.GraphHiveTableImporterJob</class>
|
|
|
|
|
<jar>dhp-graph-mapper-${projectVersion}.jar</jar>
|
|
|
|
|
<spark-opts>
|
|
|
|
|
--executor-memory=${sparkExecutorMemory}
|
|
|
|
|
--executor-cores=${sparkExecutorCores}
|
|
|
|
|
--driver-memory=${sparkDriverMemory}
|
|
|
|
|
--conf spark.executor.memoryOverhead=${sparkExecutorMemory}
|
|
|
|
|
--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=1000
|
|
|
|
|
</spark-opts>
|
|
|
|
|
<arg>--inputPath</arg><arg>${inputPath}/software</arg>
|
|
|
|
|
<arg>--hiveDbName</arg><arg>${hiveDbName}</arg>
|
|
|
|
|
<arg>--className</arg><arg>eu.dnetlib.dhp.schema.oaf.Software</arg>
|
|
|
|
|
<arg>--hiveMetastoreUris</arg><arg>${hiveMetastoreUris}</arg>
|
|
|
|
|
<arg>--numPartitions</arg><arg>1000</arg>
|
|
|
|
|
</spark>
|
|
|
|
|
<ok to="join_import"/>
|
|
|
|
|
<error to="Kill"/>
|
|
|
|
|
</action>
|
|
|
|
|
|
|
|
|
|
<action name="import_datasource">
|
|
|
|
|
<spark xmlns="uri:oozie:spark-action:0.2">
|
|
|
|
|
<master>yarn</master>
|
|
|
|
|
<mode>cluster</mode>
|
|
|
|
|
<name>Import table datasource</name>
|
|
|
|
|
<class>eu.dnetlib.dhp.oa.graph.hive.GraphHiveTableImporterJob</class>
|
|
|
|
|
<jar>dhp-graph-mapper-${projectVersion}.jar</jar>
|
|
|
|
|
<spark-opts>
|
|
|
|
|
--executor-memory=${sparkExecutorMemory}
|
|
|
|
|
--executor-cores=${sparkExecutorCores}
|
|
|
|
|
--driver-memory=${sparkDriverMemory}
|
|
|
|
|
--conf spark.executor.memoryOverhead=${sparkExecutorMemory}
|
|
|
|
|
--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=200
|
|
|
|
|
</spark-opts>
|
|
|
|
|
<arg>--inputPath</arg><arg>${inputPath}/datasource</arg>
|
|
|
|
|
<arg>--hiveDbName</arg><arg>${hiveDbName}</arg>
|
|
|
|
|
<arg>--className</arg><arg>eu.dnetlib.dhp.schema.oaf.Datasource</arg>
|
|
|
|
|
<arg>--hiveMetastoreUris</arg><arg>${hiveMetastoreUris}</arg>
|
|
|
|
|
<arg>--numPartitions</arg><arg>200</arg>
|
|
|
|
|
</spark>
|
|
|
|
|
<ok to="join_import"/>
|
|
|
|
|
<error to="Kill"/>
|
|
|
|
|
</action>
|
|
|
|
|
|
|
|
|
|
<action name="import_organization">
|
|
|
|
|
<spark xmlns="uri:oozie:spark-action:0.2">
|
|
|
|
|
<master>yarn</master>
|
|
|
|
|
<mode>cluster</mode>
|
|
|
|
|
<name>Import table organization</name>
|
|
|
|
|
<class>eu.dnetlib.dhp.oa.graph.hive.GraphHiveTableImporterJob</class>
|
|
|
|
|
<jar>dhp-graph-mapper-${projectVersion}.jar</jar>
|
|
|
|
|
<spark-opts>
|
|
|
|
|
--executor-memory=${sparkExecutorMemory}
|
|
|
|
|
--executor-cores=${sparkExecutorCores}
|
|
|
|
|
--driver-memory=${sparkDriverMemory}
|
|
|
|
|
--conf spark.executor.memoryOverhead=${sparkExecutorMemory}
|
|
|
|
|
--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=1000
|
|
|
|
|
</spark-opts>
|
|
|
|
|
<arg>--inputPath</arg><arg>${inputPath}/organization</arg>
|
|
|
|
|
<arg>--hiveDbName</arg><arg>${hiveDbName}</arg>
|
|
|
|
|
<arg>--className</arg><arg>eu.dnetlib.dhp.schema.oaf.Organization</arg>
|
|
|
|
|
<arg>--hiveMetastoreUris</arg><arg>${hiveMetastoreUris}</arg>
|
|
|
|
|
<arg>--numPartitions</arg><arg>1000</arg>
|
|
|
|
|
</spark>
|
|
|
|
|
<ok to="join_import"/>
|
|
|
|
|
<error to="Kill"/>
|
|
|
|
|
</action>
|
|
|
|
|
|
|
|
|
|
<action name="import_project">
|
|
|
|
|
<spark xmlns="uri:oozie:spark-action:0.2">
|
|
|
|
|
<master>yarn</master>
|
|
|
|
|
<mode>cluster</mode>
|
|
|
|
|
<name>Import table project</name>
|
|
|
|
|
<class>eu.dnetlib.dhp.oa.graph.hive.GraphHiveTableImporterJob</class>
|
|
|
|
|
<jar>dhp-graph-mapper-${projectVersion}.jar</jar>
|
|
|
|
|
<spark-opts>
|
|
|
|
|
--executor-memory=${sparkExecutorMemory}
|
|
|
|
|
--executor-cores=${sparkExecutorCores}
|
|
|
|
|
--driver-memory=${sparkDriverMemory}
|
|
|
|
|
--conf spark.executor.memoryOverhead=${sparkExecutorMemory}
|
|
|
|
|
--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=1000
|
|
|
|
|
</spark-opts>
|
|
|
|
|
<arg>--inputPath</arg><arg>${inputPath}/project</arg>
|
|
|
|
|
<arg>--hiveDbName</arg><arg>${hiveDbName}</arg>
|
|
|
|
|
<arg>--className</arg><arg>eu.dnetlib.dhp.schema.oaf.Project</arg>
|
|
|
|
|
<arg>--hiveMetastoreUris</arg><arg>${hiveMetastoreUris}</arg>
|
|
|
|
|
<arg>--numPartitions</arg><arg>1000</arg>
|
|
|
|
|
</spark>
|
|
|
|
|
<ok to="join_import"/>
|
|
|
|
|
<error to="Kill"/>
|
|
|
|
|
</action>
|
|
|
|
|
|
|
|
|
|
<action name="import_person">
|
|
|
|
|
<spark xmlns="uri:oozie:spark-action:0.2">
|
|
|
|
|
<master>yarn</master>
|
|
|
|
|
<mode>cluster</mode>
|
|
|
|
|
<name>Import table person</name>
|
|
|
|
|
<class>eu.dnetlib.dhp.oa.graph.hive.GraphHiveTableImporterJob</class>
|
|
|
|
|
<jar>dhp-graph-mapper-${projectVersion}.jar</jar>
|
|
|
|
|
<spark-opts>
|
|
|
|
|
--executor-memory=${sparkExecutorMemory}
|
|
|
|
|
--executor-cores=${sparkExecutorCores}
|
|
|
|
|
--driver-memory=${sparkDriverMemory}
|
|
|
|
|
--conf spark.executor.memoryOverhead=${sparkExecutorMemory}
|
|
|
|
|
--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=1000
|
|
|
|
|
</spark-opts>
|
|
|
|
|
<arg>--inputPath</arg><arg>${inputPath}/person</arg>
|
|
|
|
|
<arg>--hiveDbName</arg><arg>${hiveDbName}</arg>
|
|
|
|
|
<arg>--className</arg><arg>eu.dnetlib.dhp.schema.oaf.Person</arg>
|
|
|
|
|
<arg>--hiveMetastoreUris</arg><arg>${hiveMetastoreUris}</arg>
|
|
|
|
|
<arg>--numPartitions</arg><arg>1000</arg>
|
|
|
|
|
</spark>
|
|
|
|
|
<ok to="join_import"/>
|
|
|
|
|
<error to="Kill"/>
|
|
|
|
|
</action>
|
|
|
|
|
|
|
|
|
|
<action name="import_relation">
|
|
|
|
|
<spark xmlns="uri:oozie:spark-action:0.2">
|
|
|
|
|
<master>yarn</master>
|
|
|
|
|
<mode>cluster</mode>
|
|
|
|
|
<name>Import table relation</name>
|
|
|
|
|
<class>eu.dnetlib.dhp.oa.graph.hive.GraphHiveTableImporterJob</class>
|
|
|
|
|
<jar>dhp-graph-mapper-${projectVersion}.jar</jar>
|
|
|
|
|
<spark-opts>
|
|
|
|
|
--executor-memory=${sparkExecutorMemory}
|
|
|
|
|
--executor-cores=${sparkExecutorCores}
|
|
|
|
|
--driver-memory=${sparkDriverMemory}
|
|
|
|
|
--conf spark.executor.memoryOverhead=${sparkExecutorMemory}
|
|
|
|
|
--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=15000
|
|
|
|
|
</spark-opts>
|
|
|
|
|
<arg>--inputPath</arg><arg>${inputPath}/relation</arg>
|
|
|
|
|
<arg>--hiveDbName</arg><arg>${hiveDbName}</arg>
|
|
|
|
|
<arg>--className</arg><arg>eu.dnetlib.dhp.schema.oaf.Relation</arg>
|
|
|
|
|
<arg>--hiveMetastoreUris</arg><arg>${hiveMetastoreUris}</arg>
|
|
|
|
|
<arg>--numPartitions</arg><arg>15000</arg>
|
|
|
|
|
</spark>
|
|
|
|
|
<ok to="join_import"/>
|
|
|
|
|
<error to="Kill"/>
|
|
|
|
|
</action>
|
|
|
|
|
|
|
|
|
|
<join name="join_import" to="PostProcessing"/>
|
|
|
|
|
|
|
|
|
|
<action name="PostProcessing">
|
|
|
|
|
<hive2 xmlns="uri:oozie:hive2-action:0.1">
|
|
|
|
|
<configuration>
|
|
|
|
|