Database getDatabase(@NotNull String dbName) throws TException {
    return client.get_database(dbName);
  }
Create a client to Hive Metastore.
If principal is specified, create kerberised client.

@param uri server uri
@throws MetaException        if fails to login using kerberos credentials
@throws IOException          if fails connecting to metastore
@throws InterruptedException if interrupted during kerberos setup
standalone-metastore/metastore-tools/tools-common/src/main/java/org/apache/hadoop/hive/metastore/tools/HMSClient.java