diff --git common/src/java/org/apache/hadoop/hive/common/ServerUtils.java common/src/java/org/apache/hadoop/hive/common/ServerUtils.java
index a284f18..4141770 100644
--- common/src/java/org/apache/hadoop/hive/common/ServerUtils.java
+++ common/src/java/org/apache/hadoop/hive/common/ServerUtils.java
@@ -24,6 +24,9 @@
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.hive.conf.HiveConf;
+import java.net.InetAddress;
+import java.net.UnknownHostException;
+
/**
* ServerUtils (specific to HiveServer version 1)
*/
@@ -47,4 +50,15 @@ public static void cleanUpScratchDir(HiveConf hiveConf) {
}
}
+ /**
+ * @return name of current host
+ */
+ public static String hostname() {
+ try {
+ return InetAddress.getLocalHost().getHostName();
+ } catch (UnknownHostException e) {
+ LOG.error("Unable to resolve my host name " + e.getMessage());
+ throw new RuntimeException(e);
+ }
+ }
}
diff --git hcatalog/src/test/e2e/templeton/deployers/config/hive/hive-site.mysql.xml hcatalog/src/test/e2e/templeton/deployers/config/hive/hive-site.mysql.xml
index b6f1ab7..387da6c 100644
--- hcatalog/src/test/e2e/templeton/deployers/config/hive/hive-site.mysql.xml
+++ hcatalog/src/test/e2e/templeton/deployers/config/hive/hive-site.mysql.xml
@@ -62,13 +62,14 @@
hive.exec.dynamic.partition.mode
nonstrict
+
hive.compactor.initiator.on
- false
+ true
hive.compactor.worker.threads
- 2
+ 5
hive.timedout.txn.reaper.start
@@ -81,9 +82,24 @@
-->
hive.timedout.txn.reaper.interval
- 30s
+ 1s
+
+
+ hive.compactor.history.reaper.interval
+ 1s
+
+
+ hive.compactor.cleaner.run.interval
+ 1s
+
+
+ hive.compactor.check.interval
+ 1s
+
+
+ hive.compactor.delta.num.threshold
+ 2
-