From 3400133c2f21b6809dc961c4cf411b6e06680795 Mon Sep 17 00:00:00 2001 From: dimitrispie Date: Mon, 13 Feb 2023 09:44:00 +0200 Subject: [PATCH] Bug fix --- .../oa/graph/stats/oozie_app/copyDataToImpalaCluster.sh | 8 ++++---- .../eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) 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 a2424a3514..5b6752398e 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 @@ -7,7 +7,7 @@ then fi #export HADOOP_USER_NAME="dimitris.pierrakos" -export HADOOP_USER_NAME=$4 +export HADOOP_USER_NAME=$5 function copydb() { db=$1 @@ -52,10 +52,10 @@ function copydb() { STATS_DB=$1 MONITOR_DB=$2 OBSERVATORY_DB=$3 -HADOOP_USER_NAME=$4 -#EXT_DB=$4 +EXT_DB=$4 +HADOOP_USER_NAME=$5 -#copydb $EXT_DB +copydb $EXT_DB copydb $STATS_DB copydb $MONITOR_DB copydb $OBSERVATORY_DB 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 558b9544fe..31a7a17c55 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 @@ -432,6 +432,7 @@ ${stats_db_name} ${monitor_db_name} ${observatory_db_name} + ${stats_ext} ${hadoop_user_name} copyDataToImpalaCluster.sh