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 <[email protected]> Authored: Thu Jun 11 10:02:02 2015 -0700 Committer: Jimmy Xiang <[email protected]> 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
