private void unCacheDataNucleusClassLoaders() { try { boolean isLocalMetastore = HiveConfUtil.isEmbeddedMetaStore( MetastoreConf.getVar(sessionConf, MetastoreConf.ConfVars.THRIFT_URIS)); if (isLocalMetastore) { String rawStoreImpl = MetastoreConf.getVar(sessionConf, MetastoreConf.ConfVars.RAW_STORE_IMPL); String realStoreImpl; if (rawStoreImpl.equals(CachedStore.class.getName())) { realStoreImpl = MetastoreConf.getVar(sessionConf, MetastoreConf.ConfVars.CACHED_RAW_STORE_IMPL); } else { realStoreImpl = rawStoreImpl; } Class<?> clazz = Class.forName(realStoreImpl); if (ObjectStore.class.isAssignableFrom(clazz)) { PersistenceManagerProvider.clearOutPmfClassLoaderCache(); } } } catch (Exception e) { LOG.info("Failed to remove classloaders from DataNucleus ", e); } }
if(HiveConfUtil.isEmbeddedMetaStore(msUri)){ setLoadMetastoreConfig(true);
localMetaStore = HiveConfUtil.isEmbeddedMetaStore(msUri); if (localMetaStore) {
localMetaStore = HiveConfUtil.isEmbeddedMetaStore(msUri); if (localMetaStore) {
if(HiveConfUtil.isEmbeddedMetaStore(msUri)){ setLoadMetastoreConfig(true);
if(HiveConfUtil.isEmbeddedMetaStore(msUri)){ setLoadMetastoreConfig(true);