metastoreClientReferences.put(
new WeakReference<Supplier<IMetaStoreClient>>(supplier, metastoreClientReferenceQueue),
client
);
} catch (MetaException e) {
throw new ExploreException("Error initializing Hive Metastore client", e);
}
}
return metastoreClientLocal.get().get();
}