You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by se...@apache.org on 2015/06/13 03:28:44 UTC
[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)
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 <ct...@gmail.com>
Authored: Fri Jun 12 10:18:05 2015 -0400
Committer: ctang <ct...@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());