public static IMetaStoreClient getNonCachedHiveMetastoreClient(HiveConf hiveConf) throws MetaException {
    return RetryingMetaStoreClient.getProxy(hiveConf, true);
  }
A thread safe time expired cache for HiveMetaStoreClient
metastore/src/java/org/apache/hadoop/hive/metastore/HiveClientCache.java