You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by jc...@apache.org on 2019/01/07 14:54:13 UTC

hive git commit: HIVE-21085: Materialized views registry starts non-external tez session (Jesus Camacho Rodriguez, reviewed by Ashutosh Chauhan)

Repository: hive
Updated Branches:
  refs/heads/master b354ed423 -> 0dbb896cf


HIVE-21085: Materialized views registry starts non-external tez session (Jesus Camacho Rodriguez, reviewed by Ashutosh Chauhan)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/0dbb896c
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/0dbb896c
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/0dbb896c

Branch: refs/heads/master
Commit: 0dbb896cfde2dc38a030ab140c7ef7e409904f40
Parents: b354ed4
Author: Jesus Camacho Rodriguez <jc...@apache.org>
Authored: Fri Jan 4 10:30:00 2019 +0100
Committer: Jesus Camacho Rodriguez <jc...@apache.org>
Committed: Mon Jan 7 09:52:20 2019 -0500

----------------------------------------------------------------------
 .../hadoop/hive/ql/metadata/HiveMaterializedViewsRegistry.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/0dbb896c/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveMaterializedViewsRegistry.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveMaterializedViewsRegistry.java b/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveMaterializedViewsRegistry.java
index ee405ca..b6b7c53 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveMaterializedViewsRegistry.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveMaterializedViewsRegistry.java
@@ -156,7 +156,9 @@ public final class HiveMaterializedViewsRegistry {
     @Override
     public void run() {
       try {
-        SessionState.start(db.getConf());
+        SessionState ss = new SessionState(db.getConf());
+        ss.setIsHiveServerQuery(true); // All is served from HS2, we do not need e.g. Tez sessions
+        SessionState.start(ss);
         final boolean cache = !db.getConf()
             .get(HiveConf.ConfVars.HIVE_SERVER2_MATERIALIZED_VIEWS_REGISTRY_IMPL.varname).equals("DUMMY");
         for (String dbName : db.getAllDatabases()) {