From 39f279574c274e68ee3e792795283b5074ff9d86 Mon Sep 17 00:00:00 2001 From: Artsiom Chuiko Date: Fri, 9 Nov 2018 16:21:32 +0300 Subject: [PATCH] Update run.sh --- run.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/run.sh b/run.sh index 0aa289e..cfe8ff8 100644 --- a/run.sh +++ b/run.sh @@ -1,6 +1,3 @@ - -hive SET hive.cli.print.header=true; - echo "Task #1 is running" echo "Creating tables..." @@ -8,21 +5,21 @@ echo "Creating tables..." HOTELS_TABLE_NAME=$1 HOTELS_FILE_LOCATION=$2 -hive --hiveconf -d HOTELS_TABLE_NAME=${HOTELS_TABLE_NAME} \ +hive -d HOTELS_TABLE_NAME=${HOTELS_TABLE_NAME} \ -d HOTELS_FILE_LOCATION=${HOTELS_FILE_LOCATION} \ -f create_hotels_table.hql -hive --hiveconf -d HOTELS_TABLE_NAME=${HOTELS_TABLE_NAME} \ +hive -d HOTELS_TABLE_NAME=${HOTELS_TABLE_NAME} \ -S -f select_top3_countries_with_succ_booking.hql echo "Task #2 is running" -hive --hiveconf -d HOTELS_TABLE_NAME=${HOTELS_TABLE_NAME} \ +hive -d HOTELS_TABLE_NAME=${HOTELS_TABLE_NAME} \ -S -f select_longest_period_of_stay.hql echo "Task #3 is running" -hive --hiveconf -d HOTELS_TABLE_NAME=${HOTELS_TABLE_NAME} \ +hive -d HOTELS_TABLE_NAME=${HOTELS_TABLE_NAME} \ -S -f select_top3_hotels_from_clicks.hql echo "Done"