hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ser...@apache.org
Subject [46/50] [abbrv] hive git commit: HIVE-10977: No need to instantiate MetaStoreDirectSql when HMS DirectSql is disabled (Chaoyu Tang, reviewed by Xuefu Zhang and Sergey Shelukhin)
Date Sat, 13 Jun 2015 01:28:44 GMT
HIVE-10977: No need to instantiate MetaStoreDirectSql when HMS DirectSql is disabled (Chaoyu
Tang, reviewed by Xuefu Zhang and Sergey Shelukhin)


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

Branch: refs/heads/llap
Commit: e236314c371fbf646fff1f972569e6383cc9e44a
Parents: 671e1a7
Author: ctang <ctang.ma@gmail.com>
Authored: Fri Jun 12 10:18:05 2015 -0400
Committer: ctang <ctang.ma@gmail.com>
Committed: Fri Jun 12 10:20:14 2015 -0400

----------------------------------------------------------------------
 .../src/java/org/apache/hadoop/hive/metastore/ObjectStore.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/e236314c/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java
----------------------------------------------------------------------
diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java
index fd61333..417ecc8 100644
--- a/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java
+++ b/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java
@@ -292,7 +292,9 @@ public class ObjectStore implements RawStore, Configurable {
     isInitialized = pm != null;
     if (isInitialized) {
       expressionProxy = createExpressionProxy(hiveConf);
-      directSql = new MetaStoreDirectSql(pm, hiveConf);
+      if (HiveConf.getBoolVar(getConf(), ConfVars.METASTORE_TRY_DIRECT_SQL)) {
+        directSql = new MetaStoreDirectSql(pm, hiveConf);
+      }
     }
     LOG.debug("RawStore: " + this + ", with PersistenceManager: " + pm +
         " created in the thread with id: " + Thread.currentThread().getId());


Mime
View raw message