@Nullable
  private HiveStorageHandler createStorageHandler(org.apache.hadoop.hive.metastore.api.Table tbl) throws MetaException {
    try {
      if (tbl == null) {
        return null;
      }
      String className = getStorageHandlerClassName(tbl);
      HiveStorageHandler storageHandler = HiveUtils.getStorageHandler(conf, className);
      return storageHandler;
    } catch (HiveException ex) {
      LOG.error("Failed createStorageHandler", ex);
      throw new MetaException(
              "Failed to load storage handler:  " + ex.getMessage());
    }
  }
Creates a metastore client. Currently it creates only JDBC based client as
File based store support is removed

@returns a Meta Store Client
@throws HiveMetaException
          if a working client can't be created
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java