diff --git a/ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/HouseKeeperServiceBase.java b/ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/HouseKeeperServiceBase.java index 0b7332c..0aa160c 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/HouseKeeperServiceBase.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/HouseKeeperServiceBase.java @@ -48,7 +48,11 @@ public void start(HiveConf hiveConf) throws Exception { private final AtomicInteger threadCounter = new AtomicInteger(); @Override public Thread newThread(Runnable r) { - return new Thread(r, HouseKeeperServiceBase.this.getClass().getName() + "-" + threadCounter.getAndIncrement()); + Thread t = + new Thread(r, HouseKeeperServiceBase.this.getClass().getName() + "-" + + threadCounter.getAndIncrement()); + t.setDaemon(true); + return t; } });