commit 99b10222b2f9e24080377555a7a5aae789240e11 Author: Alan Gates Date: Fri Apr 13 11:10:24 2018 -0700 HIVE-19164 TestMetastoreVersion failures diff --git ql/src/java/org/apache/hadoop/hive/ql/Driver.java ql/src/java/org/apache/hadoop/hive/ql/Driver.java index a88453c978..b2b41b22b1 100644 --- ql/src/java/org/apache/hadoop/hive/ql/Driver.java +++ ql/src/java/org/apache/hadoop/hive/ql/Driver.java @@ -614,7 +614,7 @@ public void run() { // query running in this same thread. This has to be done after we get our semantic // analyzer (this is when the connection to the metastore is made) but before we analyze, // because at that point we need access to the objects. - Hive.get().getMSC().flushCache(); + Hive.get(conf).getMSC().flushCache(); BaseSemanticAnalyzer sem; // Do semantic analysis and plan generation