You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by sz...@apache.org on 2015/12/09 01:05:03 UTC
hive git commit: HIVE-12621 : PTest Backup additional spark logs
(Szehon, reviewed by Xuefu and Sergey Shelukhin)
Repository: hive
Updated Branches:
refs/heads/master 58adda5d1 -> b19b6952a
HIVE-12621 : PTest Backup additional spark logs (Szehon, reviewed by Xuefu and Sergey Shelukhin)
Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/b19b6952
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/b19b6952
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/b19b6952
Branch: refs/heads/master
Commit: b19b6952a3efd5950d15472feded72772d5e4aad
Parents: 58adda5
Author: Szehon Ho <sz...@cloudera.com>
Authored: Tue Dec 8 16:04:20 2015 -0800
Committer: Szehon Ho <sz...@cloudera.com>
Committed: Tue Dec 8 16:04:20 2015 -0800
----------------------------------------------------------------------
testutils/ptest2/src/main/resources/batch-exec.vm | 6 ++++++
1 file changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hive/blob/b19b6952/testutils/ptest2/src/main/resources/batch-exec.vm
----------------------------------------------------------------------
diff --git a/testutils/ptest2/src/main/resources/batch-exec.vm b/testutils/ptest2/src/main/resources/batch-exec.vm
index da3e0ac..c2f66be 100644
--- a/testutils/ptest2/src/main/resources/batch-exec.vm
+++ b/testutils/ptest2/src/main/resources/batch-exec.vm
@@ -90,6 +90,12 @@ find ./ -type f -name hive.log -o -name spark.log | \
xargs -I {} sh -c 'f=$(basename {}); test -f ${logDir}/$f && f=$f-$(uuidgen); mv {} ${logDir}/$f'
find ./ -type f -name 'TEST-*.xml' | \
xargs -I {} sh -c 'f=TEST-${batchName}-$(basename {}); test -f ${logDir}/$f && f=$f-$(uuidgen); mv {} ${logDir}/$f'
+find ./ -path "*/spark/work" | \
+ xargs -I {} sh -c 'mv {} ${logDir}/spark-log'
+find ./ -type f -name 'syslog*' | \
+ xargs -I {} sh -c 'mkdir -p ${logDir}/syslogs; mv {} ${logDir}/syslogs'
+
+
if [[ -f $logDir/.log ]]
then
mv $logDir/.log $logDir/dot.log