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:43 UTC
[45/50] [abbrv] hive git commit: HIVE-10976 Redundant HiveMetaStore
connect check in HS2 CLIService start (Chaoyu via Jimmy)
HIVE-10976 Redundant HiveMetaStore connect check in HS2 CLIService start (Chaoyu via Jimmy)
Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/671e1a71
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/671e1a71
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/671e1a71
Branch: refs/heads/llap
Commit: 671e1a71759108cd11099d9404942bf912f27b1b
Parents: ac49574
Author: Jimmy Xiang <jx...@cloudera.com>
Authored: Thu Jun 11 10:02:02 2015 -0700
Committer: Jimmy Xiang <jx...@cloudera.com>
Committed: Thu Jun 11 10:10:08 2015 -0700
----------------------------------------------------------------------
.../java/org/apache/hive/service/cli/CLIService.java | 13 -------------
1 file changed, 13 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hive/blob/671e1a71/service/src/java/org/apache/hive/service/cli/CLIService.java
----------------------------------------------------------------------
diff --git a/service/src/java/org/apache/hive/service/cli/CLIService.java b/service/src/java/org/apache/hive/service/cli/CLIService.java
index a3af7b2..4c7d7f4 100644
--- a/service/src/java/org/apache/hive/service/cli/CLIService.java
+++ b/service/src/java/org/apache/hive/service/cli/CLIService.java
@@ -145,19 +145,6 @@ public class CLIService extends CompositeService implements ICLIService {
@Override
public synchronized void start() {
super.start();
- // Initialize and test a connection to the metastore
- IMetaStoreClient metastoreClient = null;
- try {
- metastoreClient = new HiveMetaStoreClient(hiveConf);
- metastoreClient.getDatabases("default");
- } catch (Exception e) {
- throw new ServiceException("Unable to connect to MetaStore!", e);
- }
- finally {
- if (metastoreClient != null) {
- metastoreClient.close();
- }
- }
}
@Override