You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by pv...@apache.org on 2019/04/02 13:09:08 UTC
[hive] branch master updated: HIVE-21557: Query based compaction
fails with NullPointerException: Non-local session path expected to be
non-null (Peter Vary reviewed by Ashutosh Chauhan)
This is an automated email from the ASF dual-hosted git repository.
pvary pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/master by this push:
new 606d3f2 HIVE-21557: Query based compaction fails with NullPointerException: Non-local session path expected to be non-null (Peter Vary reviewed by Ashutosh Chauhan)
606d3f2 is described below
commit 606d3f21eee82388978c2e7a7f9db0c49fa08da8
Author: Peter Vary <pv...@cloudera.com>
AuthorDate: Tue Apr 2 15:07:58 2019 +0200
HIVE-21557: Query based compaction fails with NullPointerException: Non-local session path expected to be non-null (Peter Vary reviewed by Ashutosh Chauhan)
---
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorMR.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorMR.java b/ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorMR.java
index f323c31..ac80bd1 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorMR.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorMR.java
@@ -356,7 +356,7 @@ public class CompactorMR {
return;
}
String user = UserGroupInformation.getCurrentUser().getShortUserName();
- SessionState sessionState = DriverUtils.setUpSessionState(hiveConf, user, false);
+ SessionState sessionState = DriverUtils.setUpSessionState(hiveConf, user, true);
// Set up the session for driver.
HiveConf conf = new HiveConf(hiveConf);
conf.set(ConfVars.HIVE_QUOTEDID_SUPPORT.varname, "column");