diff --git a/dhp-workflows/dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/copyDataToImpalaCluster.sh b/dhp-workflows/dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/copyDataToImpalaCluster.sh
index b5209b04d..a2424a351 100644
--- a/dhp-workflows/dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/copyDataToImpalaCluster.sh
+++ b/dhp-workflows/dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/copyDataToImpalaCluster.sh
@@ -24,6 +24,7 @@ function copydb() {
impala-shell -i impala-cluster-dn1.openaire.eu -q "drop database if exists ${db} cascade";
impala-shell -i impala-cluster-dn1.openaire.eu -q "create database ${db}";
+ impala-shell -q "INVALIDATE METADATA"
echo "creating schema for ${db}"
for i in `impala-shell -d ${db} --delimited -q "show tables"`;
do
diff --git a/dhp-workflows/dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml b/dhp-workflows/dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml
index 5d2e3799e..558b9544f 100644
--- a/dhp-workflows/dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml
+++ b/dhp-workflows/dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml
@@ -103,6 +103,7 @@
${wf:conf('resumeFrom') eq 'Step16_5'}
${wf:conf('resumeFrom') eq 'Step19-finalize'}
${wf:conf('resumeFrom') eq 'step20-createMonitorDB'}
+ ${wf:conf('resumeFrom') eq 'step20-createMonitorDB-post'}
${wf:conf('resumeFrom') eq 'step21-createObservatoryDB-pre'}
${wf:conf('resumeFrom') eq 'step21-createObservatoryDB'}
${wf:conf('resumeFrom') eq 'step21-createObservatoryDB-post'}
@@ -377,8 +378,7 @@
monitor-post.sh
${monitor_db_name}
${monitor_db_shadow_name}
- ${wf:appPath()}/scripts/step20-createMonitorDB.sql
- monitor.sh
+ monitor-post.sh