Skip to content

Commit

Permalink
Copy to remote storage
Browse files Browse the repository at this point in the history
  • Loading branch information
kecheung committed Feb 17, 2021
1 parent 7d9ba0c commit 2670bb1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions util_runtpcds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,18 @@ function runBenchmark() {
}

function generateZipReport() {
# Final report location
FINAL_REPORT_LOCATION="/TPCDS_RESULTS/${SCALE}/"
hdfs dfs -mkdir -p ${FINAL_REPORT_LOCATION}
hdfs dfs -chmod 777 ${FINAL_REPORT_LOCATION}

python3 parselog.py
mv $REPORT_NAME".csv" $REPORT_NAME$ID".csv"
zip -j log_query.zip log_query/*
zip -r "tpcds-"$SCALE"GB-"$ID".zip" log_query.zip PAT/PAT-collecting-data/results/tpcdsPAT"$ID"/* $REPORT_NAME$ID".csv" "llapio_summary"*".csv"
rm log_query.zip
zip -r "tpcds-${SCALE}GB-${ID}.zip" log_query.zip PAT/PAT-collecting-data/results/tpcdsPAT"$ID"/* "${REPORT_NAME}${ID}.csv" "llapio_summary"*".csv"
rm log_query.zip

hdfs dfs -copyFromLocal "tpcds-${SCALE}GB-${ID}.zip" "${FINAL_REPORT_LOCATION}/tpcds-${SCALE}GB-${ID}.zip"
}

# --- SCRIPT START ---
Expand Down

0 comments on commit 2670bb1

Please sign in to comment.