use of org.apache.hadoop.util.ReflectionUtils in project hive by apache.
the class ResourceMaps method clearReflectionUtilsCache.
private void clearReflectionUtilsCache() {
Method clearCacheMethod;
try {
clearCacheMethod = ReflectionUtils.class.getDeclaredMethod("clearCache");
if (clearCacheMethod != null) {
clearCacheMethod.setAccessible(true);
clearCacheMethod.invoke(null);
LOG.debug("Cleared Hadoop ReflectionUtils CONSTRUCTOR_CACHE");
}
} catch (Exception e) {
LOG.info("Failed to clear up Hadoop ReflectionUtils CONSTRUCTOR_CACHE", e);
}
}
Aggregations