From 4ebd2db05b9c272ab8676e82a4113f46701c2aef Mon Sep 17 00:00:00 2001 From: Bhavani Sudha Saktheeswaran Date: Sun, 2 Aug 2020 19:44:51 -0700 Subject: [PATCH] [MINOR] Suppressing full hive log and fetching only exceptions with context (#1903) Co-authored-by: Bhavani Sudha Saktheeswaran --- .../src/test/java/org/apache/hudi/integ/ITTestBase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hudi-integ-test/src/test/java/org/apache/hudi/integ/ITTestBase.java b/hudi-integ-test/src/test/java/org/apache/hudi/integ/ITTestBase.java index c2312d0cf..fc4c259c4 100644 --- a/hudi-integ-test/src/test/java/org/apache/hudi/integ/ITTestBase.java +++ b/hudi-integ-test/src/test/java/org/apache/hudi/integ/ITTestBase.java @@ -236,7 +236,7 @@ public abstract class ITTestBase { try { // save up the Hive log files for introspection String hiveLogStr = - executeCommandStringInDocker(HIVESERVER, "cat /tmp/root/hive.log", true).getStdout().toString(); + executeCommandStringInDocker(HIVESERVER, "cat /tmp/root/hive.log | grep -i exception -A 10 -B 5", true).getStdout().toString(); String filePath = System.getProperty("java.io.tmpdir") + "/" + System.currentTimeMillis() + "-hive.log"; FileIOUtils.writeStringToFile(hiveLogStr, filePath); LOG.info("Hive log saved up at : " + filePath);