<workflowRun _class='org.jenkinsci.plugins.workflow.job.WorkflowRun'><action _class='hudson.model.ParametersAction'><parameter _class='hudson.model.StringParameterValue'><name>PROJECT_REPO</name><value>https://code-repo.d4science.org/OpenAIRE/dhp-graph-stats</value></parameter><parameter _class='hudson.model.StringParameterValue'><name>PROJECT_REPO_BRANCH</name><value>main</value></parameter><parameter _class='hudson.model.StringParameterValue'><name>DEPLOYMENT_ROOT_DIR</name><value>/lib/dnet/PROD</value></parameter></action><action _class='hudson.model.CauseAction'><cause _class='hudson.model.Cause$UserIdCause'><shortDescription>Started by user Antonis Lempesis</shortDescription><userId>antonis.lempesis</userId><userName>Antonis Lempesis</userName></cause></action><action _class='org.jenkinsci.plugins.workflow.libs.LibrariesAction'></action><action></action><action></action><action _class='hudson.plugins.git.util.BuildData'><buildsByBranchName><refsremotesoriginmain _class='hudson.plugins.git.util.Build'><buildNumber>56</buildNumber><marked><SHA1>7f4d09eda5c84007a7f75b16c54282e5ec5775b3</SHA1><branch><SHA1>7f4d09eda5c84007a7f75b16c54282e5ec5775b3</SHA1><name>refs/remotes/origin/main</name></branch></marked><revision><SHA1>7f4d09eda5c84007a7f75b16c54282e5ec5775b3</SHA1><branch><SHA1>7f4d09eda5c84007a7f75b16c54282e5ec5775b3</SHA1><name>refs/remotes/origin/main</name></branch></revision></refsremotesoriginmain><refsremotesoriginusage_stats_deployment _class='hudson.plugins.git.util.Build'><buildNumber>28</buildNumber><marked><SHA1>89c9b7aea127a2d1d15fce9f90735f09282e638b</SHA1><branch><SHA1>89c9b7aea127a2d1d15fce9f90735f09282e638b</SHA1><name>refs/remotes/origin/usage_stats_deployment</name></branch></marked><revision><SHA1>89c9b7aea127a2d1d15fce9f90735f09282e638b</SHA1><branch><SHA1>89c9b7aea127a2d1d15fce9f90735f09282e638b</SHA1><name>refs/remotes/origin/usage_stats_deployment</name></branch></revision></refsremotesoriginusage_stats_deployment></buildsByBranchName><lastBuiltRevision><SHA1>7f4d09eda5c84007a7f75b16c54282e5ec5775b3</SHA1><branch><SHA1>7f4d09eda5c84007a7f75b16c54282e5ec5775b3</SHA1><name>refs/remotes/origin/main</name></branch></lastBuiltRevision><remoteUrl>gitea@code-repo.d4science.org:OpenAIRE/dhp-graph-stats.git</remoteUrl><scmName></scmName></action><action></action><action _class='org.jenkinsci.plugins.workflow.cps.EnvActionImpl'><environment><HOSTNAME>iis-cdh5-test-gw.ocean.icm.edu.pl</HOSTNAME><ROOT_WORKING_DIR>/tmp2/git.dnet/dnet-hadoop/PROD/2026-11-19</ROOT_WORKING_DIR><USERNAME>git.dnet</USERNAME><WORKSPACE_TMP>/var/lib/jenkins/workspace/dhp-graph-stats_CD@tmp</WORKSPACE_TMP></environment></action><action _class='hudson.plugins.git.util.BuildData'><buildsByBranchName><refsremotesoriginmain _class='hudson.plugins.git.util.Build'><buildNumber>56</buildNumber><marked><SHA1>7f4d09eda5c84007a7f75b16c54282e5ec5775b3</SHA1><branch><SHA1>7f4d09eda5c84007a7f75b16c54282e5ec5775b3</SHA1><name>refs/remotes/origin/main</name></branch></marked><revision><SHA1>7f4d09eda5c84007a7f75b16c54282e5ec5775b3</SHA1><branch><SHA1>7f4d09eda5c84007a7f75b16c54282e5ec5775b3</SHA1><name>refs/remotes/origin/main</name></branch></revision></refsremotesoriginmain><refsremotesoriginmain_202606 _class='hudson.plugins.git.util.Build'><buildNumber>42</buildNumber><marked><SHA1>e3bb05274969795d0cc98c7ad070b0140563ab52</SHA1><branch><SHA1>e3bb05274969795d0cc98c7ad070b0140563ab52</SHA1><name>refs/remotes/origin/main_202606</name></branch></marked><revision><SHA1>e3bb05274969795d0cc98c7ad070b0140563ab52</SHA1><branch><SHA1>e3bb05274969795d0cc98c7ad070b0140563ab52</SHA1><name>refs/remotes/origin/main_202606</name></branch></revision></refsremotesoriginmain_202606><refsremotesoriginusage_stats_deployment _class='hudson.plugins.git.util.Build'><buildNumber>28</buildNumber><marked><SHA1>89c9b7aea127a2d1d15fce9f90735f09282e638b</SHA1><branch><SHA1>89c9b7aea127a2d1d15fce9f90735f09282e638b</SHA1><name>refs/remotes/origin/usage_stats_deployment</name></branch></marked><revision><SHA1>89c9b7aea127a2d1d15fce9f90735f09282e638b</SHA1><branch><SHA1>89c9b7aea127a2d1d15fce9f90735f09282e638b</SHA1><name>refs/remotes/origin/usage_stats_deployment</name></branch></revision></refsremotesoriginusage_stats_deployment></buildsByBranchName><lastBuiltRevision><SHA1>7f4d09eda5c84007a7f75b16c54282e5ec5775b3</SHA1><branch><SHA1>7f4d09eda5c84007a7f75b16c54282e5ec5775b3</SHA1><name>refs/remotes/origin/main</name></branch></lastBuiltRevision><remoteUrl>https://code-repo.d4science.org/OpenAIRE/dhp-graph-stats</remoteUrl><scmName></scmName></action><action></action><action></action><action></action><action _class='org.jenkinsci.plugins.displayurlapi.actions.RunDisplayAction'><artifactsUrl>https://jenkins-dnet.d4science.org/job/dhp-graph-stats_CD/lastStableBuild/artifact</artifactsUrl><changesUrl>https://jenkins-dnet.d4science.org/job/dhp-graph-stats_CD/changes</changesUrl><displayUrl>https://jenkins-dnet.d4science.org/job/dhp-graph-stats_CD/lastStableBuild/</displayUrl><testsUrl>https://jenkins-dnet.d4science.org/job/dhp-graph-stats_CD/lastStableBuild/testReport</testsUrl></action><action _class='org.jenkinsci.plugins.pipeline.modeldefinition.actions.RestartDeclarativePipelineAction'><restartEnabled>false</restartEnabled><restartableStage>Setup</restartableStage><restartableStage>Checkout</restartableStage><restartableStage>Install</restartableStage><restartableStage>updateStatsDB</restartableStage><restartableStage>promoteStatsDB</restartableStage><restartableStage>usagestats_update</restartableStage><restartableStage>usagestats_rawdata_update</restartableStage></action><action></action><action _class='org.jenkinsci.plugins.workflow.job.views.FlowGraphAction'><node _class='org.jenkinsci.plugins.workflow.graph.FlowStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode'></node><node _class='org.jenkinsci.plugins.workflow.graph.FlowEndNode'></node></action><action></action><action></action><action></action><building>false</building><displayName>#56</displayName><duration>256072</duration><estimatedDuration>426887</estimatedDuration><fullDisplayName>dhp-graph-stats_CD #56</fullDisplayName><id>56</id><keepLog>false</keepLog><number>56</number><queueId>69958</queueId><result>SUCCESS</result><timestamp>1795130203971</timestamp><url>https://jenkins-dnet.d4science.org/job/dhp-graph-stats_CD/56/</url><changeSet _class='hudson.plugins.git.GitChangeSetList'><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/copyDataToImpalaCluster_v2.sh</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</affectedPath><commitId>8e6cd8f26bf229eebe6136ceb2588c768858d779</commitId><timestamp>1793144302000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>copyDataToImpalaCluster_v2: collect view DDLs in one hive session per DB

A hive CLI call costs ~7 s of startup. B4 ran one 'show create table' call
per view (1665 views in a full run, ~3 h). All statements of a DB now go in
one 'hive -f' session, each preceded by a 'select' marker line to tie the
output to the view; hive.cli.errors.ignore keeps one bad entity from
stopping the rest; a view that comes back empty is retried alone (old path).

Tested read-only on monitor_20261028_ris_tail (176 views): 82 s instead of
about 26 min; output identical to the old method on a 5-view sample.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-28 01:38:22 +0200</date><id>8e6cd8f26bf229eebe6136ceb2588c768858d779</id><msg>copyDataToImpalaCluster_v2: collect view DDLs in one hive session per DB</msg><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/copyDataToImpalaCluster_v2.sh</file></path><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_continent.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_RIs.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist_init.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_RIs_tail.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_country.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_institutions.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_flat.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createIrishDB.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDBAll.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_funded.sql</affectedPath><commitId>278c153d7fb9ed19ea1b9f761737ec64e88d7301</commitId><timestamp>1793283676000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>perf(step20): add COALESCE(100) hint to all monitor CREATE TABLE AS SELECT

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-29 16:21:16 +0200</date><id>278c153d7fb9ed19ea1b9f761737ec64e88d7301</id><msg>perf(step20): add COALESCE(100) hint to all monitor CREATE TABLE AS SELECT</msg><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_RIs_tail.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_flat.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDBAll.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_country.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_funded.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_continent.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createIrishDB.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_RIs.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist_init.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_institutions.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step7.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step10.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step8.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step15_5.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step16_5.sql</affectedPath><commitId>55c37e535e1f135a9e5fe0217ac03ea7ecd58591</commitId><timestamp>1793311738000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>perf(stats): add COALESCE(100) hint to remaining CTAS in step7, 8, 10, 15_5, 16_5

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-30 00:08:58 +0200</date><id>55c37e535e1f135a9e5fe0217ac03ea7ecd58591</id><msg>perf(stats): add COALESCE(100) hint to remaining CTAS in step7, 8, 10, 15_5, 16_5</msg><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step7.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step10.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step15_5.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step8.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step16_5.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/ContextsDBTest.java</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/contexts.sh</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml</affectedPath><affectedPath>dhp-stats-update/src/main/java/eu/dnetlib/dhp/oa/graph/stats/ContextsDB.java</affectedPath><commitId>776c17056486ab923ce11bae4acedb8ea41542f8</commitId><timestamp>1793353736000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>feat(stats): replace Contexts hive shell step with Spark ContextsDB job

Downloads contexts/categories/concepts from the context API in the driver
and writes the context, category and concept parquet tables via Spark SQL
(COALESCE(100), drop-if-exists so restarts are idempotent). Removes contexts.sh.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-30 11:48:56 +0200</date><id>776c17056486ab923ce11bae4acedb8ea41542f8</id><msg>feat(stats): replace Contexts hive shell step with Spark ContextsDB job</msg><path><editType>add</editType><file>dhp-stats-update/src/main/java/eu/dnetlib/dhp/oa/graph/stats/ContextsDB.java</file></path><path><editType>delete</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/contexts.sh</file></path><path><editType>add</editType><file>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/ContextsDBTest.java</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/main/java/eu/dnetlib/dhp/oa/graph/stats/MonitorDB.java</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_RIs_tail.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_institutions.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createIrishDB.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_continent.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_RIs.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist_init.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_country.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_flat.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDBAll.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_funded.sql</affectedPath><affectedPath>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/MonitorCoalesceTest.java</affectedPath><commitId>17f00193b380fde866d0cacc5f783dc28207b186</commitId><timestamp>1793488452000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>feat(step20): make monitor COALESCE configurable via --coalesce, sized per monitor db

step20 scripts now use COALESCE(${coalesce}); MonitorDB substitutes the
--coalesce arg (default 100). Values per action in workflow.xml derived from
per-table sizes of the 20261028 prod monitor dbs (target ~128MB/file).

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-11-01 01:14:12 +0200</date><id>17f00193b380fde866d0cacc5f783dc28207b186</id><msg>feat(step20): make monitor COALESCE configurable via --coalesce, sized per monitor db</msg><path><editType>edit</editType><file>dhp-stats-update/src/main/java/eu/dnetlib/dhp/oa/graph/stats/MonitorDB.java</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist_init.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_RIs_tail.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_funded.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_institutions.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_country.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_continent.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createIrishDB.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDBAll.sql</file></path><path><editType>add</editType><file>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/MonitorCoalesceTest.java</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_RIs.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_flat.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/monitor.sh</affectedPath><commitId>cf96244034aa407dcf60694576306d5ad0e74ebf</commitId><timestamp>1793488796000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>chore(stats): remove unused monitor.sh

Superseded by MonitorDB (Spark); no workflow action references it, and it
would not substitute the new ${coalesce} placeholder in the step20 scripts.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-11-01 01:19:56 +0200</date><id>cf96244034aa407dcf60694576306d5ad0e74ebf</id><msg>chore(stats): remove unused monitor.sh</msg><path><editType>delete</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/monitor.sh</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml</affectedPath><commitId>391516a7b940f8cdca996979d046211ad77e66ae</commitId><timestamp>1793608928000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(step20): raise --coalesce for distinct-heavy monitor dbs to avoid OOM

step20-monitor-funded failed with SparkOutOfMemoryError while writing result
with COALESCE(4) (job 0016815). Raise funded 4-&gt;16, institutions 6-&gt;24,
it 4-&gt;16, jp 14-&gt;56, europe 33-&gt;100; the ri/ie/gr values are unchanged.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-11-02 10:42:08 +0200</date><id>391516a7b940f8cdca996979d046211ad77e66ae</id><msg>fix(step20): raise --coalesce for distinct-heavy monitor dbs to avoid OOM</msg><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_RIs_tail.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_institutions.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createIrishDB.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_continent.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_RIs.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist_init.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_country.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_flat.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDBAll.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_funded.sql</affectedPath><affectedPath>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/MonitorCoalesceTest.java</affectedPath><commitId>49104997fb3c131609ab79321b6aaba7c6aff1d2</commitId><timestamp>1793610485000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(step20): use REPARTITION(n) instead of COALESCE(n) in monitor CTAS, restore sized --coalesce

COALESCE(n) has no shuffle, so the whole join+distinct of the monitor result
ran in n tasks and hit SparkOutOfMemoryError (step20-monitor-funded, jobs
0016815 and 0016817, also with n=16). REPARTITION(n) keeps the join/aggregate
at full parallelism and only the write stage has n tasks.

Tested by hand with the workflow's spark settings (3840 shuffle partitions,
6G executors): funded result with REPARTITION(16) took 84 s, 6189971 rows, 16
files, 855 MB. Reverts the per-db values of 391516a to the sized ones
(funded 4, institutions 6, it 4, jp 14, europe 33); MonitorCoalesceTest updated.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-11-02 11:08:05 +0200</date><id>49104997fb3c131609ab79321b6aaba7c6aff1d2</id><msg>fix(step20): use REPARTITION(n) instead of COALESCE(n) in monitor CTAS, restore sized --coalesce</msg><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDBAll.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_RIs.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_country.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_RIs_tail.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist_init.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/MonitorCoalesceTest.java</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_funded.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_flat.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_institutions.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createIrishDB.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_continent.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_flat.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist_init.sql</affectedPath><affectedPath>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/MonitorCoalesceTest.java</affectedPath><commitId>5eaf62e6ec5005c2749a50883ed1f521a3f8e78f</commitId><timestamp>1793655826000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>stats: keep COALESCE hint for multi-join step20 scripts (flat, ie_hist)

REPARTITION(1) over the 28-way sort-merge-join chain of ie_flat runs out of
execution memory (tested: fails with 3840 and 200 shuffle partitions, COALESCE(1)
succeeds). Same for ie_hist scripts as a precaution.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-11-02 23:43:46 +0200</date><id>5eaf62e6ec5005c2749a50883ed1f521a3f8e78f</id><msg>stats: keep COALESCE hint for multi-join step20 scripts (flat, ie_hist)</msg><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist_init.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/MonitorCoalesceTest.java</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_flat.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/config-default.xml</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/copyDataToImpalaCluster_v2.sh</affectedPath><commitId>b3fdf3c4a9b95beb48a84ad66f6e9b0c2a26d5e2</commitId><timestamp>1793728742000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>stats: SKIP_COPY resume mode and DB de-duplication in copyDataToImpalaCluster_v2.sh

SKIP_COPY=1 (job property skip_copy, default 0) skips drop/rm/distcp/chmod and
keeps the Impala tables that already exist, and creates views with IF NOT EXISTS.
It lets step22 resume after a run that copied every DB but died in the view step.
Duplicate DB names are now processed once (usage_stats_db_name equal to the
hard-coded openaire_prod_usage_stats made Step C die on 'Table already exists').

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-11-03 19:59:02 +0200</date><id>b3fdf3c4a9b95beb48a84ad66f6e9b0c2a26d5e2</id><msg>stats: SKIP_COPY resume mode and DB de-duplication in copyDataToImpalaCluster_v2.sh</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/config-default.xml</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/copyDataToImpalaCluster_v2.sh</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/main/java/eu/dnetlib/dhp/oa/graph/stats/ObservatoryDB.java</affectedPath><affectedPath>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/ObservatorySqlTest.java</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step21-createObservatoryDB.sql</affectedPath><commitId>622b5a6cf8f2018ea8006662c49a3799a178d80b</commitId><timestamp>1794266293000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(stats): keep the stats views in the observatory DB

ObservatoryDB drops and creates the target DB and then creates a view for
every stats table before it runs step21-createObservatoryDB.sql. Commit
5a930e6 added a second drop/create database to the head of that script, which
wiped the views, so the observatory DB only kept the 19 tables built by the
script (174 views were missing in openaire_prod_stats_observatory_20261028).

Remove the drop/create from the script (the Java class owns it) and add a test
that keeps them out.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-11-10 01:18:13 +0200</date><id>622b5a6cf8f2018ea8006662c49a3799a178d80b</id><msg>fix(stats): keep the stats views in the observatory DB</msg><path><editType>edit</editType><file>dhp-stats-update/src/main/java/eu/dnetlib/dhp/oa/graph/stats/ObservatoryDB.java</file></path><path><editType>add</editType><file>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/ObservatorySqlTest.java</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step21-createObservatoryDB.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step6.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDBAll.sql</affectedPath><commitId>00ada7501a1c270767354ee80c63c4eaf4ef6318</commitId><timestamp>1794348180000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>feat(stats): add project_funder table, fix funder.country, expose in monitor DBs

- funder.country now read from the exploded funder (fund), not fundingtree[0]
- new project_funder(id, funder_id, funder_name, shortname, country,
  funding_lvl0..2): one row per project and funding tree, so every funder of
  a project is represented, not only the first tree's
- monitor DBs expose it as a view (observatory DB picks it up automatically
  since it views every stats table)

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-11-11 00:03:00 +0200</date><id>00ada7501a1c270767354ee80c63c4eaf4ef6318</id><msg>feat(stats): add project_funder table, fix funder.country, expose in monitor DBs</msg><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDBAll.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step6.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createMonitorDB.sql</affectedPath><affectedPath>dhp-sciance-stats/README.md</affectedPath><commitId>953446e990e24a86fdc7428031c15c9d3b19abb0</commitId><timestamp>1794348267000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>feat(sciance): expose project_funder view; document stats_db_name requirement

Only the single view line is added: the sciance copy of step20-createMonitorDB.sql has
no ${coalesce} placeholders and ScianceStatsDB does not substitute them.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-11-11 00:04:27 +0200</date><id>953446e990e24a86fdc7428031c15c9d3b19abb0</id><msg>feat(sciance): expose project_funder view; document stats_db_name requirement</msg><path><editType>edit</editType><file>dhp-sciance-stats/README.md</file></path><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createMonitorDB.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/ContextsDBTest.java</affectedPath><affectedPath>dhp-stats-update/src/main/java/eu/dnetlib/dhp/oa/graph/stats/ContextsDB.java</affectedPath><commitId>69dbe1b8a0ac52e7fb06cf766776eb8a3954a19b</commitId><timestamp>1794361339000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(contexts): replace Java 9 InputStream.readAllBytes with Java 8 read loop

The cluster runs Java 8; ContextsDB failed with NoSuchMethodError
java.io.InputStream.readAllBytes(). Also drop List.of from ContextsDBTest so the
module builds and tests on JDK 8.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-11-11 03:42:19 +0200</date><id>69dbe1b8a0ac52e7fb06cf766776eb8a3954a19b</id><msg>fix(contexts): replace Java 9 InputStream.readAllBytes with Java 8 read loop</msg><path><editType>edit</editType><file>dhp-stats-update/src/main/java/eu/dnetlib/dhp/oa/graph/stats/ContextsDB.java</file></path><path><editType>edit</editType><file>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/ContextsDBTest.java</file></path></item><kind>git</kind></changeSet><changeSet _class='hudson.plugins.git.GitChangeSetList'><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/copyDataToImpalaCluster_v2.sh</affectedPath><commitId>8e6cd8f26bf229eebe6136ceb2588c768858d779</commitId><timestamp>1793144302000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>copyDataToImpalaCluster_v2: collect view DDLs in one hive session per DB

A hive CLI call costs ~7 s of startup. B4 ran one 'show create table' call
per view (1665 views in a full run, ~3 h). All statements of a DB now go in
one 'hive -f' session, each preceded by a 'select' marker line to tie the
output to the view; hive.cli.errors.ignore keeps one bad entity from
stopping the rest; a view that comes back empty is retried alone (old path).

Tested read-only on monitor_20261028_ris_tail (176 views): 82 s instead of
about 26 min; output identical to the old method on a 5-view sample.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-28 01:38:22 +0200</date><id>8e6cd8f26bf229eebe6136ceb2588c768858d779</id><msg>copyDataToImpalaCluster_v2: collect view DDLs in one hive session per DB</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/copyDataToImpalaCluster_v2.sh</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_continent.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_RIs.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist_init.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_country.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_institutions.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_RIs_tail.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createIrishDB.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_flat.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDBAll.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_funded.sql</affectedPath><commitId>278c153d7fb9ed19ea1b9f761737ec64e88d7301</commitId><timestamp>1793283676000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>perf(step20): add COALESCE(100) hint to all monitor CREATE TABLE AS SELECT

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-29 16:21:16 +0200</date><id>278c153d7fb9ed19ea1b9f761737ec64e88d7301</id><msg>perf(step20): add COALESCE(100) hint to all monitor CREATE TABLE AS SELECT</msg><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_country.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDBAll.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_RIs.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createIrishDB.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist_init.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_institutions.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_funded.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_RIs_tail.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_flat.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_continent.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step7.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step8.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step10.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step15_5.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step16_5.sql</affectedPath><commitId>55c37e535e1f135a9e5fe0217ac03ea7ecd58591</commitId><timestamp>1793311738000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>perf(stats): add COALESCE(100) hint to remaining CTAS in step7, 8, 10, 15_5, 16_5

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-30 00:08:58 +0200</date><id>55c37e535e1f135a9e5fe0217ac03ea7ecd58591</id><msg>perf(stats): add COALESCE(100) hint to remaining CTAS in step7, 8, 10, 15_5, 16_5</msg><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step7.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step8.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step15_5.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step16_5.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step10.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/ContextsDBTest.java</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/contexts.sh</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml</affectedPath><affectedPath>dhp-stats-update/src/main/java/eu/dnetlib/dhp/oa/graph/stats/ContextsDB.java</affectedPath><commitId>776c17056486ab923ce11bae4acedb8ea41542f8</commitId><timestamp>1793353736000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>feat(stats): replace Contexts hive shell step with Spark ContextsDB job

Downloads contexts/categories/concepts from the context API in the driver
and writes the context, category and concept parquet tables via Spark SQL
(COALESCE(100), drop-if-exists so restarts are idempotent). Removes contexts.sh.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-30 11:48:56 +0200</date><id>776c17056486ab923ce11bae4acedb8ea41542f8</id><msg>feat(stats): replace Contexts hive shell step with Spark ContextsDB job</msg><path><editType>delete</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/contexts.sh</file></path><path><editType>add</editType><file>dhp-stats-update/src/main/java/eu/dnetlib/dhp/oa/graph/stats/ContextsDB.java</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml</file></path><path><editType>add</editType><file>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/ContextsDBTest.java</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/main/java/eu/dnetlib/dhp/oa/graph/stats/MonitorDB.java</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_RIs_tail.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_institutions.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createIrishDB.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_continent.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_RIs.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist_init.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_country.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_flat.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDBAll.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_funded.sql</affectedPath><affectedPath>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/MonitorCoalesceTest.java</affectedPath><commitId>17f00193b380fde866d0cacc5f783dc28207b186</commitId><timestamp>1793488452000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>feat(step20): make monitor COALESCE configurable via --coalesce, sized per monitor db

step20 scripts now use COALESCE(${coalesce}); MonitorDB substitutes the
--coalesce arg (default 100). Values per action in workflow.xml derived from
per-table sizes of the 20261028 prod monitor dbs (target ~128MB/file).

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-11-01 01:14:12 +0200</date><id>17f00193b380fde866d0cacc5f783dc28207b186</id><msg>feat(step20): make monitor COALESCE configurable via --coalesce, sized per monitor db</msg><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_RIs.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_RIs_tail.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_flat.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_continent.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_institutions.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB.sql</file></path><path><editType>add</editType><file>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/MonitorCoalesceTest.java</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/java/eu/dnetlib/dhp/oa/graph/stats/MonitorDB.java</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDBAll.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_funded.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist_init.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_country.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createIrishDB.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/monitor.sh</affectedPath><commitId>cf96244034aa407dcf60694576306d5ad0e74ebf</commitId><timestamp>1793488796000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>chore(stats): remove unused monitor.sh

Superseded by MonitorDB (Spark); no workflow action references it, and it
would not substitute the new ${coalesce} placeholder in the step20 scripts.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-11-01 01:19:56 +0200</date><id>cf96244034aa407dcf60694576306d5ad0e74ebf</id><msg>chore(stats): remove unused monitor.sh</msg><path><editType>delete</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/monitor.sh</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml</affectedPath><commitId>391516a7b940f8cdca996979d046211ad77e66ae</commitId><timestamp>1793608928000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(step20): raise --coalesce for distinct-heavy monitor dbs to avoid OOM

step20-monitor-funded failed with SparkOutOfMemoryError while writing result
with COALESCE(4) (job 0016815). Raise funded 4-&gt;16, institutions 6-&gt;24,
it 4-&gt;16, jp 14-&gt;56, europe 33-&gt;100; the ri/ie/gr values are unchanged.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-11-02 10:42:08 +0200</date><id>391516a7b940f8cdca996979d046211ad77e66ae</id><msg>fix(step20): raise --coalesce for distinct-heavy monitor dbs to avoid OOM</msg><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_RIs_tail.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_institutions.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createIrishDB.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_continent.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_RIs.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist_init.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_country.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_flat.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDBAll.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_funded.sql</affectedPath><affectedPath>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/MonitorCoalesceTest.java</affectedPath><commitId>49104997fb3c131609ab79321b6aaba7c6aff1d2</commitId><timestamp>1793610485000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(step20): use REPARTITION(n) instead of COALESCE(n) in monitor CTAS, restore sized --coalesce

COALESCE(n) has no shuffle, so the whole join+distinct of the monitor result
ran in n tasks and hit SparkOutOfMemoryError (step20-monitor-funded, jobs
0016815 and 0016817, also with n=16). REPARTITION(n) keeps the join/aggregate
at full parallelism and only the write stage has n tasks.

Tested by hand with the workflow's spark settings (3840 shuffle partitions,
6G executors): funded result with REPARTITION(16) took 84 s, 6189971 rows, 16
files, 855 MB. Reverts the per-db values of 391516a to the sized ones
(funded 4, institutions 6, it 4, jp 14, europe 33); MonitorCoalesceTest updated.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-11-02 11:08:05 +0200</date><id>49104997fb3c131609ab79321b6aaba7c6aff1d2</id><msg>fix(step20): use REPARTITION(n) instead of COALESCE(n) in monitor CTAS, restore sized --coalesce</msg><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_RIs_tail.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_RIs.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_flat.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDBAll.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/MonitorCoalesceTest.java</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_country.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_continent.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_funded.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createIrishDB.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_institutions.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist_init.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_flat.sql</affectedPath><affectedPath>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/MonitorCoalesceTest.java</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist_init.sql</affectedPath><commitId>5eaf62e6ec5005c2749a50883ed1f521a3f8e78f</commitId><timestamp>1793655826000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>stats: keep COALESCE hint for multi-join step20 scripts (flat, ie_hist)

REPARTITION(1) over the 28-way sort-merge-join chain of ie_flat runs out of
execution memory (tested: fails with 3840 and 200 shuffle partitions, COALESCE(1)
succeeds). Same for ie_hist scripts as a precaution.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-11-02 23:43:46 +0200</date><id>5eaf62e6ec5005c2749a50883ed1f521a3f8e78f</id><msg>stats: keep COALESCE hint for multi-join step20 scripts (flat, ie_hist)</msg><path><editType>edit</editType><file>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/MonitorCoalesceTest.java</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_flat.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist_init.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB_ie_hist.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/config-default.xml</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/copyDataToImpalaCluster_v2.sh</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</affectedPath><commitId>b3fdf3c4a9b95beb48a84ad66f6e9b0c2a26d5e2</commitId><timestamp>1793728742000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>stats: SKIP_COPY resume mode and DB de-duplication in copyDataToImpalaCluster_v2.sh

SKIP_COPY=1 (job property skip_copy, default 0) skips drop/rm/distcp/chmod and
keeps the Impala tables that already exist, and creates views with IF NOT EXISTS.
It lets step22 resume after a run that copied every DB but died in the view step.
Duplicate DB names are now processed once (usage_stats_db_name equal to the
hard-coded openaire_prod_usage_stats made Step C die on 'Table already exists').

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-11-03 19:59:02 +0200</date><id>b3fdf3c4a9b95beb48a84ad66f6e9b0c2a26d5e2</id><msg>stats: SKIP_COPY resume mode and DB de-duplication in copyDataToImpalaCluster_v2.sh</msg><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/config-default.xml</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/copyDataToImpalaCluster_v2.sh</file></path><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/ObservatorySqlTest.java</affectedPath><affectedPath>dhp-stats-update/src/main/java/eu/dnetlib/dhp/oa/graph/stats/ObservatoryDB.java</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step21-createObservatoryDB.sql</affectedPath><commitId>622b5a6cf8f2018ea8006662c49a3799a178d80b</commitId><timestamp>1794266293000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(stats): keep the stats views in the observatory DB

ObservatoryDB drops and creates the target DB and then creates a view for
every stats table before it runs step21-createObservatoryDB.sql. Commit
5a930e6 added a second drop/create database to the head of that script, which
wiped the views, so the observatory DB only kept the 19 tables built by the
script (174 views were missing in openaire_prod_stats_observatory_20261028).

Remove the drop/create from the script (the Java class owns it) and add a test
that keeps them out.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-11-10 01:18:13 +0200</date><id>622b5a6cf8f2018ea8006662c49a3799a178d80b</id><msg>fix(stats): keep the stats views in the observatory DB</msg><path><editType>add</editType><file>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/ObservatorySqlTest.java</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/java/eu/dnetlib/dhp/oa/graph/stats/ObservatoryDB.java</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step21-createObservatoryDB.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step6.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDBAll.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB.sql</affectedPath><commitId>00ada7501a1c270767354ee80c63c4eaf4ef6318</commitId><timestamp>1794348180000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>feat(stats): add project_funder table, fix funder.country, expose in monitor DBs

- funder.country now read from the exploded funder (fund), not fundingtree[0]
- new project_funder(id, funder_id, funder_name, shortname, country,
  funding_lvl0..2): one row per project and funding tree, so every funder of
  a project is represented, not only the first tree's
- monitor DBs expose it as a view (observatory DB picks it up automatically
  since it views every stats table)

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-11-11 00:03:00 +0200</date><id>00ada7501a1c270767354ee80c63c4eaf4ef6318</id><msg>feat(stats): add project_funder table, fix funder.country, expose in monitor DBs</msg><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDBAll.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step6.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step20-createMonitorDB.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createMonitorDB.sql</affectedPath><affectedPath>dhp-sciance-stats/README.md</affectedPath><commitId>953446e990e24a86fdc7428031c15c9d3b19abb0</commitId><timestamp>1794348267000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>feat(sciance): expose project_funder view; document stats_db_name requirement

Only the single view line is added: the sciance copy of step20-createMonitorDB.sql has
no ${coalesce} placeholders and ScianceStatsDB does not substitute them.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-11-11 00:04:27 +0200</date><id>953446e990e24a86fdc7428031c15c9d3b19abb0</id><msg>feat(sciance): expose project_funder view; document stats_db_name requirement</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createMonitorDB.sql</file></path><path><editType>edit</editType><file>dhp-sciance-stats/README.md</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/ContextsDBTest.java</affectedPath><affectedPath>dhp-stats-update/src/main/java/eu/dnetlib/dhp/oa/graph/stats/ContextsDB.java</affectedPath><commitId>69dbe1b8a0ac52e7fb06cf766776eb8a3954a19b</commitId><timestamp>1794361339000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(contexts): replace Java 9 InputStream.readAllBytes with Java 8 read loop

The cluster runs Java 8; ContextsDB failed with NoSuchMethodError
java.io.InputStream.readAllBytes(). Also drop List.of from ContextsDBTest so the
module builds and tests on JDK 8.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-11-11 03:42:19 +0200</date><id>69dbe1b8a0ac52e7fb06cf766776eb8a3954a19b</id><msg>fix(contexts): replace Java 9 InputStream.readAllBytes with Java 8 read loop</msg><path><editType>edit</editType><file>dhp-stats-update/src/main/java/eu/dnetlib/dhp/oa/graph/stats/ContextsDB.java</file></path><path><editType>edit</editType><file>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/ContextsDBTest.java</file></path></item><kind>git</kind></changeSet><culprit><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName><id>antonis.lempesis</id></culprit><inProgress>false</inProgress><previousBuild><action _class='hudson.model.ParametersAction'><parameter _class='hudson.model.StringParameterValue'><name>PROJECT_REPO</name><value>https://code-repo.d4science.org/OpenAIRE/dhp-graph-stats</value></parameter><parameter _class='hudson.model.StringParameterValue'><name>PROJECT_REPO_BRANCH</name><value>main</value></parameter><parameter _class='hudson.model.StringParameterValue'><name>DEPLOYMENT_ROOT_DIR</name><value>/lib/dnet/PROD</value></parameter></action><action _class='hudson.model.CauseAction'><cause _class='hudson.model.Cause$UserIdCause'><shortDescription>Started by user Antonis Lempesis</shortDescription><userId>antonis.lempesis</userId><userName>Antonis Lempesis</userName></cause></action><action _class='org.jenkinsci.plugins.workflow.libs.LibrariesAction'></action><action></action><action></action><action _class='hudson.plugins.git.util.BuildData'><buildsByBranchName><refsremotesoriginmain _class='hudson.plugins.git.util.Build'><buildNumber>55</buildNumber><marked><SHA1>399dd1a5cdc6ab081dd37fea2bc9a0982eb3ca0d</SHA1><branch><SHA1>399dd1a5cdc6ab081dd37fea2bc9a0982eb3ca0d</SHA1><name>refs/remotes/origin/main</name></branch></marked><revision><SHA1>399dd1a5cdc6ab081dd37fea2bc9a0982eb3ca0d</SHA1><branch><SHA1>399dd1a5cdc6ab081dd37fea2bc9a0982eb3ca0d</SHA1><name>refs/remotes/origin/main</name></branch></revision></refsremotesoriginmain><refsremotesoriginusage_stats_deployment _class='hudson.plugins.git.util.Build'><buildNumber>28</buildNumber><marked><SHA1>89c9b7aea127a2d1d15fce9f90735f09282e638b</SHA1><branch><SHA1>89c9b7aea127a2d1d15fce9f90735f09282e638b</SHA1><name>refs/remotes/origin/usage_stats_deployment</name></branch></marked><revision><SHA1>89c9b7aea127a2d1d15fce9f90735f09282e638b</SHA1><branch><SHA1>89c9b7aea127a2d1d15fce9f90735f09282e638b</SHA1><name>refs/remotes/origin/usage_stats_deployment</name></branch></revision></refsremotesoriginusage_stats_deployment></buildsByBranchName><lastBuiltRevision><SHA1>399dd1a5cdc6ab081dd37fea2bc9a0982eb3ca0d</SHA1><branch><SHA1>399dd1a5cdc6ab081dd37fea2bc9a0982eb3ca0d</SHA1><name>refs/remotes/origin/main</name></branch></lastBuiltRevision><remoteUrl>gitea@code-repo.d4science.org:OpenAIRE/dhp-graph-stats.git</remoteUrl><scmName></scmName></action><action></action><action _class='org.jenkinsci.plugins.workflow.cps.EnvActionImpl'></action><action _class='hudson.plugins.git.util.BuildData'><buildsByBranchName><refsremotesoriginmain _class='hudson.plugins.git.util.Build'><buildNumber>55</buildNumber><marked><SHA1>399dd1a5cdc6ab081dd37fea2bc9a0982eb3ca0d</SHA1><branch><SHA1>399dd1a5cdc6ab081dd37fea2bc9a0982eb3ca0d</SHA1><name>refs/remotes/origin/main</name></branch></marked><revision><SHA1>399dd1a5cdc6ab081dd37fea2bc9a0982eb3ca0d</SHA1><branch><SHA1>399dd1a5cdc6ab081dd37fea2bc9a0982eb3ca0d</SHA1><name>refs/remotes/origin/main</name></branch></revision></refsremotesoriginmain><refsremotesoriginmain_202606 _class='hudson.plugins.git.util.Build'><buildNumber>42</buildNumber><marked><SHA1>e3bb05274969795d0cc98c7ad070b0140563ab52</SHA1><branch><SHA1>e3bb05274969795d0cc98c7ad070b0140563ab52</SHA1><name>refs/remotes/origin/main_202606</name></branch></marked><revision><SHA1>e3bb05274969795d0cc98c7ad070b0140563ab52</SHA1><branch><SHA1>e3bb05274969795d0cc98c7ad070b0140563ab52</SHA1><name>refs/remotes/origin/main_202606</name></branch></revision></refsremotesoriginmain_202606><refsremotesoriginusage_stats_deployment _class='hudson.plugins.git.util.Build'><buildNumber>28</buildNumber><marked><SHA1>89c9b7aea127a2d1d15fce9f90735f09282e638b</SHA1><branch><SHA1>89c9b7aea127a2d1d15fce9f90735f09282e638b</SHA1><name>refs/remotes/origin/usage_stats_deployment</name></branch></marked><revision><SHA1>89c9b7aea127a2d1d15fce9f90735f09282e638b</SHA1><branch><SHA1>89c9b7aea127a2d1d15fce9f90735f09282e638b</SHA1><name>refs/remotes/origin/usage_stats_deployment</name></branch></revision></refsremotesoriginusage_stats_deployment></buildsByBranchName><lastBuiltRevision><SHA1>399dd1a5cdc6ab081dd37fea2bc9a0982eb3ca0d</SHA1><branch><SHA1>399dd1a5cdc6ab081dd37fea2bc9a0982eb3ca0d</SHA1><name>refs/remotes/origin/main</name></branch></lastBuiltRevision><remoteUrl>https://code-repo.d4science.org/OpenAIRE/dhp-graph-stats</remoteUrl><scmName></scmName></action><action></action><action></action><action></action><action _class='org.jenkinsci.plugins.displayurlapi.actions.RunDisplayAction'></action><action _class='org.jenkinsci.plugins.pipeline.modeldefinition.actions.RestartDeclarativePipelineAction'></action><action></action><action _class='org.jenkinsci.plugins.workflow.job.views.FlowGraphAction'></action><action></action><action></action><action></action><building>false</building><displayName>#55</displayName><duration>870275</duration><estimatedDuration>426887</estimatedDuration><fullDisplayName>dhp-graph-stats_CD #55</fullDisplayName><id>55</id><keepLog>false</keepLog><number>55</number><queueId>69405</queueId><result>SUCCESS</result><timestamp>1791754729278</timestamp><url>https://jenkins-dnet.d4science.org/job/dhp-graph-stats_CD/55/</url><changeSet _class='hudson.plugins.git.GitChangeSetList'><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceAggTables.sql</affectedPath><affectedPath>dhp-sciance-stats/src/main/java/eu/dnetlib/dhp/oa/graph/sciance/ScianceStatsDB.java</affectedPath><affectedPath>dhp-sciance-stats/job-override.properties-ant</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</affectedPath><affectedPath>pom.xml</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/updateCache.sh</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/finalizeScianceImpala.sh</affectedPath><affectedPath>dhp-sciance-stats/runOozieWorkfow.sh</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createMonitorDB.sql</affectedPath><affectedPath>dhp-sciance-stats/job-override.properties-beta</affectedPath><affectedPath>dhp-sciance-stats/pom.xml</affectedPath><affectedPath>dhp-sciance-stats/job-override.properties-prod</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/workflow.xml</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</affectedPath><affectedPath>dhp-sciance-stats/README.md</affectedPath><affectedPath>dhp-sciance-stats/installProject.sh</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/config-default.xml</affectedPath><commitId>51981672c6641da6995d4031fb0c1ee8f8141057</commitId><timestamp>1791294023000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>feat(sciance): standalone dhp-sciance-stats oozie workflow

Extract the sciance stats build from the dhp-stats-update step20 into its own
module/workflow: build sciance stats DB in ocean (ScianceStatsDB), copy
sciance source DB + stats DB + shadow to impala, create the impala shadow DB.
The stats tool cache update step is included but disabled (see README).

Ported from feat/sciance-stats-integration, including the removal of views
over the dropped technology taxonomy tables (sciance_v10).

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-06 16:40:23 +0300</date><id>51981672c6641da6995d4031fb0c1ee8f8141057</id><msg>feat(sciance): standalone dhp-sciance-stats oozie workflow</msg><path><editType>add</editType><file>dhp-sciance-stats/pom.xml</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/workflow.xml</file></path><path><editType>add</editType><file>dhp-sciance-stats/installProject.sh</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/updateCache.sh</file></path><path><editType>add</editType><file>dhp-sciance-stats/README.md</file></path><path><editType>add</editType><file>dhp-sciance-stats/job-override.properties-ant</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/java/eu/dnetlib/dhp/oa/graph/sciance/ScianceStatsDB.java</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/finalizeScianceImpala.sh</file></path><path><editType>add</editType><file>dhp-sciance-stats/job-override.properties-prod</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/config-default.xml</file></path><path><editType>add</editType><file>dhp-sciance-stats/runOozieWorkfow.sh</file></path><path><editType>edit</editType><file>pom.xml</file></path><path><editType>add</editType><file>dhp-sciance-stats/job-override.properties-beta</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceAggTables.sql</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createMonitorDB.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createMonitorDB.sql</affectedPath><affectedPath>dhp-sciance-stats/README.md</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/workflow.xml</affectedPath><commitId>25c9c181816beb94fc9871b571f97ee1c026dae8</commitId><timestamp>1791294581000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): target Spark SQL, follow stats-update copy/shadow logic

- result filter back to dual EXISTS, monitor sql identical to main (the Hive 1.1
  rewrites are not for the repo; test with Hive in a local copy only)
- do not copy shadow DBs to impala (stats-update logic): ocean shadow is created
  by step1, impala shadow by step3

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-06 16:49:41 +0300</date><id>25c9c181816beb94fc9871b571f97ee1c026dae8</id><msg>fix(sciance): target Spark SQL, follow stats-update copy/shadow logic</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</file></path><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/workflow.xml</file></path><path><editType>edit</editType><file>dhp-sciance-stats/README.md</file></path><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createMonitorDB.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/runOozieWorkfow.sh</affectedPath><commitId>d13032b21200459f049a9cd39b8bccf8ad75ea9e</commitId><timestamp>1791295321000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): run script uses spark-35 profile and sciance-stats source dir

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-06 17:02:01 +0300</date><id>d13032b21200459f049a9cd39b8bccf8ad75ea9e</id><msg>fix(sciance): run script uses spark-35 profile and sciance-stats source dir</msg><path><editType>edit</editType><file>dhp-sciance-stats/runOozieWorkfow.sh</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/workflow.xml</affectedPath><commitId>c277e9fbefbfa68a67da64904562a92194c5a2cd</commitId><timestamp>1791323778000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): give the impala copy shell action the impalaCluster HA config

The conf dir Oozie generates for shell actions only knows nameservice1, so the
guard in copyDataToImpalaCluster_v2.sh (and distcp) fail with
"Cannot reach Impala HDFS via hdfs://impalaCluster". Pass the HA properties
in the action configuration. Verified with a throwaway shell workflow.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-07 00:56:18 +0300</date><id>c277e9fbefbfa68a67da64904562a92194c5a2cd</id><msg>fix(sciance): give the impala copy shell action the impalaCluster HA config</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/workflow.xml</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-promote/runOozieWorkfow.sh</affectedPath><affectedPath>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/promoteCache.sh</affectedPath><affectedPath>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/workflow.xml</affectedPath><affectedPath>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/config-default.xml</affectedPath><affectedPath>dhp-sciance-promote/job-override.properties-beta</affectedPath><affectedPath>dhp-sciance-promote/job-override.properties-ant</affectedPath><affectedPath>dhp-sciance-promote/pom.xml</affectedPath><affectedPath>dhp-sciance-promote/job-override.properties-prod</affectedPath><affectedPath>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/updateProductionViews.sh</affectedPath><affectedPath>pom.xml</affectedPath><affectedPath>dhp-sciance-promote/README.md</affectedPath><commitId>a5d1d2e08cce06f0571c3330222a858f5f7b8274</commitId><timestamp>1791326581000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>feat(sciance): dhp-sciance-promote workflow

New module: promote the versioned sciance stats DB to production on impala
(drop + recreate the production DB as views over it, via the generic
updateProductionViews.sh), followed by a stats tool cache promote step that is
included but disabled (enablePromoteCache=false, see README).

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-07 01:43:01 +0300</date><id>a5d1d2e08cce06f0571c3330222a858f5f7b8274</id><msg>feat(sciance): dhp-sciance-promote workflow</msg><path><editType>add</editType><file>dhp-sciance-promote/job-override.properties-prod</file></path><path><editType>edit</editType><file>pom.xml</file></path><path><editType>add</editType><file>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/updateProductionViews.sh</file></path><path><editType>add</editType><file>dhp-sciance-promote/job-override.properties-beta</file></path><path><editType>add</editType><file>dhp-sciance-promote/pom.xml</file></path><path><editType>add</editType><file>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/workflow.xml</file></path><path><editType>add</editType><file>dhp-sciance-promote/job-override.properties-ant</file></path><path><editType>add</editType><file>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/config-default.xml</file></path><path><editType>add</editType><file>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/promoteCache.sh</file></path><path><editType>add</editType><file>dhp-sciance-promote/README.md</file></path><path><editType>add</editType><file>dhp-sciance-promote/runOozieWorkfow.sh</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createMonitorDB.sql</affectedPath><commitId>c1f1ff48fa227412112a7171479271e97e9e6bc4</commitId><timestamp>1791329155000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): materialize organization_type instead of a view over the stats DB

The impala copy of the stats DB can lack organization_type (it was added later),
so the view cannot be created on impala and the copy step dies in its view retry
loop. A small real table makes the sciance DB self-contained.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-07 02:25:55 +0300</date><id>c1f1ff48fa227412112a7171479271e97e9e6bc4</id><msg>fix(sciance): materialize organization_type instead of a view over the stats DB</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createMonitorDB.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/README.md</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</affectedPath><commitId>d4ce7fce87363aaa2485b3149e14ea5b471ff5bd</commitId><timestamp>1791364226000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): restore the technology taxonomy views

The taxonomy tables are needed after all (stats tool profile, dashboard
methodology page). sciance_v10 contains them again, so create the ten views
over them in the versioned DB.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-07 12:10:26 +0300</date><id>d4ce7fce87363aaa2485b3149e14ea5b471ff5bd</id><msg>fix(sciance): restore the technology taxonomy views</msg><path><editType>edit</editType><file>dhp-sciance-stats/README.md</file></path><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-applyOrgDedup.sql</affectedPath><affectedPath>dhp-sciance-stats/src/main/java/eu/dnetlib/dhp/oa/graph/sciance/ScianceStatsDB.java</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</affectedPath><commitId>a8df959b2676aa727575dbafbe49d5d027724019</commitId><timestamp>1791380646000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>feat(sciance): apply the organisation deduplication to the sciance stats DB

New step20-applyOrgDedup.sql, run as phase 2b of ScianceStatsDB (after the
filtered copy of the result_* tables, before the agg tables): result_organization
is remapped to canonical org ids, excluded orgs are dropped and duplicate
(result, org) pairs removed; organization becomes a table with one row per
canonical org (normalised name/type/country) next to the unmapped orgs. The
mapping comes from the new sciance_vN.organization_normalised table, which is
also exposed as a view in the versioned DB.

Checked on a scratch DB with the real data (CAS: 409,969 results before and
after the merge; no merged-away or excluded ids left; organization
508,812 -&gt; 508,795 rows).

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-07 16:44:06 +0300</date><id>a8df959b2676aa727575dbafbe49d5d027724019</id><msg>feat(sciance): apply the organisation deduplication to the sciance stats DB</msg><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-applyOrgDedup.sql</file></path><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</file></path><path><editType>edit</editType><file>dhp-sciance-stats/src/main/java/eu/dnetlib/dhp/oa/graph/sciance/ScianceStatsDB.java</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</affectedPath><commitId>37ed469fc59e410106def6dce79dc2417201c5b2</commitId><timestamp>1791381508000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): skip marker files when picking the schema file for impala tables

Same fix as in dhp-stats-update (copyDataToImpalaCluster_v2.sh is shared code):
the first directory entry can be _SUCCESS, which is not parquet.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-07 16:58:28 +0300</date><id>37ed469fc59e410106def6dce79dc2417201c5b2</id><msg>fix(sciance): skip marker files when picking the schema file for impala tables</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</affectedPath><commitId>1bbaa0547aaacdfa538f980dea0576780b1cb651</commitId><timestamp>1791403119000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): skip non-parquet tables instead of failing the impala copy

Same change as dhp-stats-update (copyDataToImpalaCluster_v2.sh is shared code
and must stay identical): check the PAR1 magic of the schema file and skip text
tables with a warning.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-07 22:58:39 +0300</date><id>1bbaa0547aaacdfa538f980dea0576780b1cb651</id><msg>fix(sciance): skip non-parquet tables instead of failing the impala copy</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</affectedPath><commitId>605e34c4e24355ae72e1e1bf1931f17a474bbcd8</commitId><timestamp>1791409563000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): read the format check from the Ocean file and never skip on a read error

Same correction as dhp-stats-update (the script is shared code and must stay
identical): the Impala datanodes are not readable from every host, so read the
magic bytes from the Ocean copy, fail on unreadable files, ignore empty files.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-08 00:46:03 +0300</date><id>605e34c4e24355ae72e1e1bf1931f17a474bbcd8</id><msg>fix(sciance): read the format check from the Ocean file and never skip on a read error</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step12.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step7.sql</affectedPath><affectedPath>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/SqlIdempotencyTest.java</affectedPath><commitId>9dff3b5504eb0e1f9eedeba615716d4c036c0b74</commitId><timestamp>1791667131000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(stats): drop result VIEW before TABLE to avoid Spark AnalysisException on restart

Spark SQL raises AnalysisException on `DROP TABLE IF EXISTS` when the
named object is a VIEW, even when IF EXISTS is specified. On DB name
reuse (e.g. restarting the workflow from step12), `result` is still
present as a VIEW from the previous run, causing the workflow to fail.

Add `DROP VIEW IF EXISTS ${stats_db_name}.result` immediately before
the existing `DROP TABLE IF EXISTS` line in both step7.sql and
step12.sql so the object is removed regardless of its current type.

Update SqlIdempotencyTest to emit a FAIL issue when DROP TABLE IF
EXISTS targets an object that is tracked as a VIEW, surfacing this
class of bug at test time rather than at runtime.

Co-Authored-By: Claude Sonnet 4.6 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-11 00:18:51 +0300</date><id>9dff3b5504eb0e1f9eedeba615716d4c036c0b74</id><msg>fix(stats): drop result VIEW before TABLE to avoid Spark AnalysisException on restart</msg><path><editType>edit</editType><file>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/SqlIdempotencyTest.java</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step12.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step7.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step7.sql</affectedPath><affectedPath>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/SqlIdempotencyTest.java</affectedPath><commitId>813c4df2fa9139ae07102993b89d5ef968b424c0</commitId><timestamp>1791670398000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(stats): harden result DROP ordering and idempotency test

step7: DROP TABLE IF EXISTS before DROP VIEW IF EXISTS so result=TABLE
(left by step16_5 of a prior run) is safely removed before the VIEW
drop, which would throw on a TABLE in Spark even with IF EXISTS.

SqlIdempotencyTest:
- Add CREATE_TEMP_VIEW action; step16 inline temp-view pairs no longer
  produce false-positive FAIL reports.
- Flag DROP_VIEW_IF on TABLE, DROP_TABLE bare on VIEW/TEMP_VIEW, and
  DROP_VIEW bare on TABLE as FAIL (Spark throws on type mismatch even
  with IF EXISTS).
- Change testSafeToResumeFromAnyStep to use the in-progress state
  model: for each step i, initial state = result of running steps
  0..i-1 from empty. This matches actual Oozie retry semantics (all
  prior steps in the current run have already completed) and eliminates
  false positives from the TABLE&lt;-&gt;VIEW lifecycle of result.

Co-Authored-By: Claude Sonnet 4.6 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-11 01:13:18 +0300</date><id>813c4df2fa9139ae07102993b89d5ef968b424c0</id><msg>fix(stats): harden result DROP ordering and idempotency test</msg><path><editType>edit</editType><file>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/SqlIdempotencyTest.java</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step7.sql</file></path></item><kind>git</kind></changeSet><changeSet _class='hudson.plugins.git.GitChangeSetList'><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceAggTables.sql</affectedPath><affectedPath>dhp-sciance-stats/src/main/java/eu/dnetlib/dhp/oa/graph/sciance/ScianceStatsDB.java</affectedPath><affectedPath>dhp-sciance-stats/job-override.properties-ant</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</affectedPath><affectedPath>pom.xml</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/updateCache.sh</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createMonitorDB.sql</affectedPath><affectedPath>dhp-sciance-stats/runOozieWorkfow.sh</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/finalizeScianceImpala.sh</affectedPath><affectedPath>dhp-sciance-stats/job-override.properties-beta</affectedPath><affectedPath>dhp-sciance-stats/job-override.properties-prod</affectedPath><affectedPath>dhp-sciance-stats/pom.xml</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/workflow.xml</affectedPath><affectedPath>dhp-sciance-stats/README.md</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/config-default.xml</affectedPath><affectedPath>dhp-sciance-stats/installProject.sh</affectedPath><commitId>51981672c6641da6995d4031fb0c1ee8f8141057</commitId><timestamp>1791294023000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>feat(sciance): standalone dhp-sciance-stats oozie workflow

Extract the sciance stats build from the dhp-stats-update step20 into its own
module/workflow: build sciance stats DB in ocean (ScianceStatsDB), copy
sciance source DB + stats DB + shadow to impala, create the impala shadow DB.
The stats tool cache update step is included but disabled (see README).

Ported from feat/sciance-stats-integration, including the removal of views
over the dropped technology taxonomy tables (sciance_v10).

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-06 16:40:23 +0300</date><id>51981672c6641da6995d4031fb0c1ee8f8141057</id><msg>feat(sciance): standalone dhp-sciance-stats oozie workflow</msg><path><editType>add</editType><file>dhp-sciance-stats/src/main/java/eu/dnetlib/dhp/oa/graph/sciance/ScianceStatsDB.java</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/config-default.xml</file></path><path><editType>add</editType><file>dhp-sciance-stats/job-override.properties-prod</file></path><path><editType>add</editType><file>dhp-sciance-stats/pom.xml</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</file></path><path><editType>edit</editType><file>pom.xml</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/updateCache.sh</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createMonitorDB.sql</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceAggTables.sql</file></path><path><editType>add</editType><file>dhp-sciance-stats/README.md</file></path><path><editType>add</editType><file>dhp-sciance-stats/job-override.properties-ant</file></path><path><editType>add</editType><file>dhp-sciance-stats/runOozieWorkfow.sh</file></path><path><editType>add</editType><file>dhp-sciance-stats/job-override.properties-beta</file></path><path><editType>add</editType><file>dhp-sciance-stats/installProject.sh</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/finalizeScianceImpala.sh</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/workflow.xml</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createMonitorDB.sql</affectedPath><affectedPath>dhp-sciance-stats/README.md</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/workflow.xml</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</affectedPath><commitId>25c9c181816beb94fc9871b571f97ee1c026dae8</commitId><timestamp>1791294581000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): target Spark SQL, follow stats-update copy/shadow logic

- result filter back to dual EXISTS, monitor sql identical to main (the Hive 1.1
  rewrites are not for the repo; test with Hive in a local copy only)
- do not copy shadow DBs to impala (stats-update logic): ocean shadow is created
  by step1, impala shadow by step3

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-06 16:49:41 +0300</date><id>25c9c181816beb94fc9871b571f97ee1c026dae8</id><msg>fix(sciance): target Spark SQL, follow stats-update copy/shadow logic</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/workflow.xml</file></path><path><editType>edit</editType><file>dhp-sciance-stats/README.md</file></path><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createMonitorDB.sql</file></path><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/runOozieWorkfow.sh</affectedPath><commitId>d13032b21200459f049a9cd39b8bccf8ad75ea9e</commitId><timestamp>1791295321000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): run script uses spark-35 profile and sciance-stats source dir

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-06 17:02:01 +0300</date><id>d13032b21200459f049a9cd39b8bccf8ad75ea9e</id><msg>fix(sciance): run script uses spark-35 profile and sciance-stats source dir</msg><path><editType>edit</editType><file>dhp-sciance-stats/runOozieWorkfow.sh</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/workflow.xml</affectedPath><commitId>c277e9fbefbfa68a67da64904562a92194c5a2cd</commitId><timestamp>1791323778000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): give the impala copy shell action the impalaCluster HA config

The conf dir Oozie generates for shell actions only knows nameservice1, so the
guard in copyDataToImpalaCluster_v2.sh (and distcp) fail with
"Cannot reach Impala HDFS via hdfs://impalaCluster". Pass the HA properties
in the action configuration. Verified with a throwaway shell workflow.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-07 00:56:18 +0300</date><id>c277e9fbefbfa68a67da64904562a92194c5a2cd</id><msg>fix(sciance): give the impala copy shell action the impalaCluster HA config</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/workflow.xml</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-promote/runOozieWorkfow.sh</affectedPath><affectedPath>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/promoteCache.sh</affectedPath><affectedPath>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/config-default.xml</affectedPath><affectedPath>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/workflow.xml</affectedPath><affectedPath>dhp-sciance-promote/job-override.properties-beta</affectedPath><affectedPath>dhp-sciance-promote/job-override.properties-ant</affectedPath><affectedPath>dhp-sciance-promote/pom.xml</affectedPath><affectedPath>dhp-sciance-promote/job-override.properties-prod</affectedPath><affectedPath>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/updateProductionViews.sh</affectedPath><affectedPath>pom.xml</affectedPath><affectedPath>dhp-sciance-promote/README.md</affectedPath><commitId>a5d1d2e08cce06f0571c3330222a858f5f7b8274</commitId><timestamp>1791326581000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>feat(sciance): dhp-sciance-promote workflow

New module: promote the versioned sciance stats DB to production on impala
(drop + recreate the production DB as views over it, via the generic
updateProductionViews.sh), followed by a stats tool cache promote step that is
included but disabled (enablePromoteCache=false, see README).

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-07 01:43:01 +0300</date><id>a5d1d2e08cce06f0571c3330222a858f5f7b8274</id><msg>feat(sciance): dhp-sciance-promote workflow</msg><path><editType>add</editType><file>dhp-sciance-promote/job-override.properties-ant</file></path><path><editType>add</editType><file>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/promoteCache.sh</file></path><path><editType>add</editType><file>dhp-sciance-promote/README.md</file></path><path><editType>add</editType><file>dhp-sciance-promote/job-override.properties-beta</file></path><path><editType>add</editType><file>dhp-sciance-promote/job-override.properties-prod</file></path><path><editType>edit</editType><file>pom.xml</file></path><path><editType>add</editType><file>dhp-sciance-promote/runOozieWorkfow.sh</file></path><path><editType>add</editType><file>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/config-default.xml</file></path><path><editType>add</editType><file>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/workflow.xml</file></path><path><editType>add</editType><file>dhp-sciance-promote/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-promote/oozie_app/updateProductionViews.sh</file></path><path><editType>add</editType><file>dhp-sciance-promote/pom.xml</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createMonitorDB.sql</affectedPath><commitId>c1f1ff48fa227412112a7171479271e97e9e6bc4</commitId><timestamp>1791329155000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): materialize organization_type instead of a view over the stats DB

The impala copy of the stats DB can lack organization_type (it was added later),
so the view cannot be created on impala and the copy step dies in its view retry
loop. A small real table makes the sciance DB self-contained.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-07 02:25:55 +0300</date><id>c1f1ff48fa227412112a7171479271e97e9e6bc4</id><msg>fix(sciance): materialize organization_type instead of a view over the stats DB</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createMonitorDB.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/README.md</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</affectedPath><commitId>d4ce7fce87363aaa2485b3149e14ea5b471ff5bd</commitId><timestamp>1791364226000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): restore the technology taxonomy views

The taxonomy tables are needed after all (stats tool profile, dashboard
methodology page). sciance_v10 contains them again, so create the ten views
over them in the versioned DB.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-07 12:10:26 +0300</date><id>d4ce7fce87363aaa2485b3149e14ea5b471ff5bd</id><msg>fix(sciance): restore the technology taxonomy views</msg><path><editType>edit</editType><file>dhp-sciance-stats/README.md</file></path><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-applyOrgDedup.sql</affectedPath><affectedPath>dhp-sciance-stats/src/main/java/eu/dnetlib/dhp/oa/graph/sciance/ScianceStatsDB.java</affectedPath><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</affectedPath><commitId>a8df959b2676aa727575dbafbe49d5d027724019</commitId><timestamp>1791380646000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>feat(sciance): apply the organisation deduplication to the sciance stats DB

New step20-applyOrgDedup.sql, run as phase 2b of ScianceStatsDB (after the
filtered copy of the result_* tables, before the agg tables): result_organization
is remapped to canonical org ids, excluded orgs are dropped and duplicate
(result, org) pairs removed; organization becomes a table with one row per
canonical org (normalised name/type/country) next to the unmapped orgs. The
mapping comes from the new sciance_vN.organization_normalised table, which is
also exposed as a view in the versioned DB.

Checked on a scratch DB with the real data (CAS: 409,969 results before and
after the merge; no merged-away or excluded ids left; organization
508,812 -&gt; 508,795 rows).

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-07 16:44:06 +0300</date><id>a8df959b2676aa727575dbafbe49d5d027724019</id><msg>feat(sciance): apply the organisation deduplication to the sciance stats DB</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/java/eu/dnetlib/dhp/oa/graph/sciance/ScianceStatsDB.java</file></path><path><editType>add</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-applyOrgDedup.sql</file></path><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/scripts/step20-createScianceDB.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</affectedPath><commitId>37ed469fc59e410106def6dce79dc2417201c5b2</commitId><timestamp>1791381508000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): skip marker files when picking the schema file for impala tables

Same fix as in dhp-stats-update (copyDataToImpalaCluster_v2.sh is shared code):
the first directory entry can be _SUCCESS, which is not parquet.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-07 16:58:28 +0300</date><id>37ed469fc59e410106def6dce79dc2417201c5b2</id><msg>fix(sciance): skip marker files when picking the schema file for impala tables</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</affectedPath><commitId>1bbaa0547aaacdfa538f980dea0576780b1cb651</commitId><timestamp>1791403119000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): skip non-parquet tables instead of failing the impala copy

Same change as dhp-stats-update (copyDataToImpalaCluster_v2.sh is shared code
and must stay identical): check the PAR1 magic of the schema file and skip text
tables with a warning.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-07 22:58:39 +0300</date><id>1bbaa0547aaacdfa538f980dea0576780b1cb651</id><msg>fix(sciance): skip non-parquet tables instead of failing the impala copy</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</affectedPath><commitId>605e34c4e24355ae72e1e1bf1931f17a474bbcd8</commitId><timestamp>1791409563000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(sciance): read the format check from the Ocean file and never skip on a read error

Same correction as dhp-stats-update (the script is shared code and must stay
identical): the Impala datanodes are not readable from every host, so read the
magic bytes from the Ocean copy, fail on unreadable files, ignore empty files.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-08 00:46:03 +0300</date><id>605e34c4e24355ae72e1e1bf1931f17a474bbcd8</id><msg>fix(sciance): read the format check from the Ocean file and never skip on a read error</msg><path><editType>edit</editType><file>dhp-sciance-stats/src/main/resources/eu/dnetlib/dhp/oa/graph/sciance-stats/oozie_app/copyDataToImpalaCluster_v2.sh</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step12.sql</affectedPath><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step7.sql</affectedPath><affectedPath>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/SqlIdempotencyTest.java</affectedPath><commitId>9dff3b5504eb0e1f9eedeba615716d4c036c0b74</commitId><timestamp>1791667131000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(stats): drop result VIEW before TABLE to avoid Spark AnalysisException on restart

Spark SQL raises AnalysisException on `DROP TABLE IF EXISTS` when the
named object is a VIEW, even when IF EXISTS is specified. On DB name
reuse (e.g. restarting the workflow from step12), `result` is still
present as a VIEW from the previous run, causing the workflow to fail.

Add `DROP VIEW IF EXISTS ${stats_db_name}.result` immediately before
the existing `DROP TABLE IF EXISTS` line in both step7.sql and
step12.sql so the object is removed regardless of its current type.

Update SqlIdempotencyTest to emit a FAIL issue when DROP TABLE IF
EXISTS targets an object that is tracked as a VIEW, surfacing this
class of bug at test time rather than at runtime.

Co-Authored-By: Claude Sonnet 4.6 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-11 00:18:51 +0300</date><id>9dff3b5504eb0e1f9eedeba615716d4c036c0b74</id><msg>fix(stats): drop result VIEW before TABLE to avoid Spark AnalysisException on restart</msg><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step7.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/SqlIdempotencyTest.java</file></path><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step12.sql</file></path></item><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step7.sql</affectedPath><affectedPath>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/SqlIdempotencyTest.java</affectedPath><commitId>813c4df2fa9139ae07102993b89d5ef968b424c0</commitId><timestamp>1791670398000</timestamp><author><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></author><authorEmail>antleb@di.uoa.gr</authorEmail><comment>fix(stats): harden result DROP ordering and idempotency test

step7: DROP TABLE IF EXISTS before DROP VIEW IF EXISTS so result=TABLE
(left by step16_5 of a prior run) is safely removed before the VIEW
drop, which would throw on a TABLE in Spark even with IF EXISTS.

SqlIdempotencyTest:
- Add CREATE_TEMP_VIEW action; step16 inline temp-view pairs no longer
  produce false-positive FAIL reports.
- Flag DROP_VIEW_IF on TABLE, DROP_TABLE bare on VIEW/TEMP_VIEW, and
  DROP_VIEW bare on TABLE as FAIL (Spark throws on type mismatch even
  with IF EXISTS).
- Change testSafeToResumeFromAnyStep to use the in-progress state
  model: for each step i, initial state = result of running steps
  0..i-1 from empty. This matches actual Oozie retry semantics (all
  prior steps in the current run have already completed) and eliminates
  false positives from the TABLE&lt;-&gt;VIEW lifecycle of result.

Co-Authored-By: Claude Sonnet 4.6 &lt;noreply@anthropic.com&gt;
</comment><date>2026-10-11 01:13:18 +0300</date><id>813c4df2fa9139ae07102993b89d5ef968b424c0</id><msg>fix(stats): harden result DROP ordering and idempotency test</msg><path><editType>edit</editType><file>dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/scripts/step7.sql</file></path><path><editType>edit</editType><file>dhp-stats-update/src/test/java/eu/dnetlib/dhp/oa/graph/stats/SqlIdempotencyTest.java</file></path></item><kind>git</kind></changeSet><culprit><absoluteUrl>https://jenkins-dnet.d4science.org/user/antonis.lempesis</absoluteUrl><fullName>Antonis Lempesis</fullName></culprit><inProgress>false</inProgress><nextBuild><number>56</number><url>https://jenkins-dnet.d4science.org/job/dhp-graph-stats_CD/56/</url></nextBuild><previousBuild><number>54</number><url>https://jenkins-dnet.d4science.org/job/dhp-graph-stats_CD/54/</url></previousBuild></previousBuild></workflowRun>