2020-11-17 07:36:51 +01:00
|
|
|
<workflow-app name="Usage Graph Stats" xmlns="uri:oozie:workflow:0.5">
|
|
|
|
<parameters>
|
|
|
|
<property>
|
|
|
|
<name>hiveMetastoreUris</name>
|
|
|
|
<description>Hive server metastore URIs</description>
|
|
|
|
</property>
|
|
|
|
<property>
|
|
|
|
<name>hiveJdbcUrl</name>
|
|
|
|
<description>Hive server jdbc url</description>
|
|
|
|
</property>
|
|
|
|
<property>
|
|
|
|
<name>impalaJdbcUrl</name>
|
|
|
|
<description>Impala server jdbc url</description>
|
|
|
|
</property>
|
|
|
|
</parameters>
|
|
|
|
|
|
|
|
<global>
|
|
|
|
<job-tracker>${jobTracker}</job-tracker>
|
|
|
|
<name-node>${nameNode}</name-node>
|
|
|
|
<configuration>
|
|
|
|
<property>
|
|
|
|
<name>hive.metastore.uris</name>
|
|
|
|
<value>${hiveMetastoreUris}</value>
|
|
|
|
</property>
|
|
|
|
<property>
|
|
|
|
<name>mapreduce.job.queuename</name>
|
|
|
|
<value>${queueName}</value>
|
|
|
|
</property>
|
|
|
|
<property>
|
|
|
|
<name>oozie.launcher.mapred.job.queue.name</name>
|
|
|
|
<value>${oozieLauncherQueueName}</value>
|
|
|
|
</property>
|
|
|
|
</configuration>
|
|
|
|
</global>
|
|
|
|
|
|
|
|
<start to="Step1"/>
|
|
|
|
|
|
|
|
<kill name="Kill">
|
|
|
|
<message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
|
|
|
|
</kill>
|
|
|
|
|
|
|
|
<action name='Step1'>
|
|
|
|
<java>
|
|
|
|
<main-class>eu.dnetlib.oa.graph.usagestatsbuild.export.ExecuteWorkflow</main-class>
|
|
|
|
<arg>--repoLogPath</arg><arg>${repoLogPath}</arg>
|
|
|
|
<arg>--portalLogPath</arg><arg>${portalLogPath}</arg>
|
|
|
|
<arg>--portalMatomoID</arg><arg>${portalMatomoID}</arg>
|
|
|
|
<arg>--irusUKReportPath</arg><arg>${irusUKReportPath}</arg>
|
|
|
|
<arg>--sarcsReportPathArray</arg><arg>${sarcsReportPathArray}</arg>
|
|
|
|
<arg>--sarcsReportPathNonArray</arg><arg>${sarcsReportPathNonArray}</arg>
|
|
|
|
<arg>--lareferenciaLogPath</arg><arg>${lareferenciaLogPath}</arg>
|
|
|
|
<arg>--dbHiveUrl</arg><arg>${hiveJdbcUrl}</arg>
|
|
|
|
<arg>--dbImpalaUrl</arg><arg>${impalaJdbcUrl}</arg>
|
|
|
|
<arg>--usageRawDataDBSchema</arg><arg>${usageRawDataDBSchema}</arg>
|
|
|
|
<arg>--usageStatsDBSchema</arg><arg>${usageStatsDBSchema}</arg>
|
2020-12-12 11:00:14 +01:00
|
|
|
<arg>--usagestatsPermanentDBSchema</arg><arg>${usagestatsPermanentDBSchema}</arg>
|
2020-11-17 07:36:51 +01:00
|
|
|
<arg>--statsDBSchema</arg><arg>${statsDBSchema}</arg>
|
|
|
|
<arg>--recreateDbAndTables</arg><arg>${recreateDbAndTables}</arg>
|
|
|
|
<arg>--processPiwikLogs</arg><arg>${processPiwikLogs}</arg>
|
|
|
|
<arg>--processLaReferenciaLogs</arg><arg>${processLaReferenciaLogs}</arg>
|
|
|
|
<arg>--irusProcessStats</arg><arg>${irusProcessStats}</arg>
|
|
|
|
<arg>--sarcProcessStats</arg><arg>${sarcProcessStats}</arg>
|
|
|
|
<arg>--finalizeStats</arg><arg>${finalizeStats}</arg>
|
|
|
|
<arg>--finalTablesVisibleToImpala</arg><arg>${finalTablesVisibleToImpala}</arg>
|
|
|
|
<arg>--numberOfDownloadThreads</arg><arg>${numberOfDownloadThreads}</arg>
|
|
|
|
<capture-output/>
|
|
|
|
</java>
|
|
|
|
<ok to="End" />
|
|
|
|
<error to="Kill" />
|
|
|
|
</action>
|
|
|
|
|
|
|
|
<end name="End"/>
|
|
|
|
</workflow-app>
|