Repository: hive
Updated Branches:
  refs/heads/master 61e21d6c3 -> fc8a45bb0


HIVE-18826: fix TestEncryptedHDFSCliDriver.testCliDriver[encryption_move_tbl] 
(Jesus Camacho Rodriguez, reviewed by Zoltan Haindrich)


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

Branch: refs/heads/master
Commit: fc8a45bb0ab736a7a9f5c7ea921832484b9287f9
Parents: 61e21d6
Author: Jesus Camacho Rodriguez <jcama...@apache.org>
Authored: Fri Mar 2 09:04:35 2018 -0800
Committer: Jesus Camacho Rodriguez <jcama...@apache.org>
Committed: Fri Mar 2 09:56:21 2018 -0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/hive/ql/QTestUtil.java   | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/fc8a45bb/itests/util/src/main/java/org/apache/hadoop/hive/ql/QTestUtil.java
----------------------------------------------------------------------
diff --git a/itests/util/src/main/java/org/apache/hadoop/hive/ql/QTestUtil.java 
b/itests/util/src/main/java/org/apache/hadoop/hive/ql/QTestUtil.java
index 45602a2..255bd5f 100644
--- a/itests/util/src/main/java/org/apache/hadoop/hive/ql/QTestUtil.java
+++ b/itests/util/src/main/java/org/apache/hadoop/hive/ql/QTestUtil.java
@@ -1149,15 +1149,17 @@ public class QTestUtil {
       createRemoteDirs();
     }
 
-    // Create views registry
-    HiveMaterializedViewsRegistry.get().init();
-
     testWarehouse = conf.getVar(HiveConf.ConfVars.METASTOREWAREHOUSE);
     String execEngine = conf.get("hive.execution.engine");
     conf.set("hive.execution.engine", "mr");
     SessionState.start(conf);
     conf.set("hive.execution.engine", execEngine);
     db = Hive.get(conf);
+    // Create views registry
+    String registryImpl = 
db.getConf().get("hive.server2.materializedviews.registry.impl");
+    db.getConf().set("hive.server2.materializedviews.registry.impl", "DUMMY");
+    HiveMaterializedViewsRegistry.get().init(db);
+    db.getConf().set("hive.server2.materializedviews.registry.impl", 
registryImpl);
     drv = DriverFactory.newDriver(conf);
     pd = new ParseDriver();
     sem = new SemanticAnalyzer(queryState);

Reply via email to