public final class ThreadLocalClassLoaderConfiguration
extends org.apache.hadoop.conf.Configuration
Since the conf is effectively cached across jobs, at least force the thread local classloader to avoid classloader leaks.
| Constructor and Description |
|---|
ThreadLocalClassLoaderConfiguration() |
ThreadLocalClassLoaderConfiguration(org.apache.hadoop.conf.Configuration other) |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getClassByNameOrNull(String name) |
ClassLoader |
getClassLoader() |
URL |
getResource(String name) |
addDefaultResource, addDeprecation, addDeprecation, addDeprecation, addDeprecation, addDeprecations, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addTags, clear, dumpConfiguration, dumpConfiguration, dumpDeprecatedKeys, get, get, getAllPropertiesByTag, getAllPropertiesByTags, getBoolean, getClass, getClass, getClassByName, getClasses, getConfResourceAsInputStream, getConfResourceAsReader, getDouble, getEnum, getFile, getFinalParameters, getFloat, getInstances, getInt, getInts, getLocalPath, getLong, getLongBytes, getPassword, getPasswordFromConfig, getPasswordFromCredentialProviders, getPattern, getPropertySources, getProps, getPropsWithPrefix, getRange, getRaw, getSocketAddr, getSocketAddr, getStorageSize, getStorageSize, getStringCollection, getStrings, getStrings, getTimeDuration, getTimeDuration, getTimeDuration, getTimeDuration, getTimeDurationHelper, getTimeDurations, getTrimmed, getTrimmed, getTrimmedStringCollection, getTrimmedStrings, getTrimmedStrings, getValByRegex, hasWarnedDeprecation, isDeprecated, isPropertyTag, iterator, main, onlyKeyExists, readFields, reloadConfiguration, reloadExistingConfigurations, set, set, setAllowNullValueProperties, setBoolean, setBooleanIfUnset, setClass, setClassLoader, setDeprecatedProperties, setDouble, setEnum, setFloat, setIfUnset, setInt, setLong, setPattern, setQuietMode, setRestrictSystemProperties, setRestrictSystemPropertiesDefault, setRestrictSystemProps, setSocketAddr, setStorageSize, setStrings, setTimeDuration, size, toString, unset, updateConnectAddr, updateConnectAddr, write, writeXml, writeXml, writeXmlclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic ThreadLocalClassLoaderConfiguration()
public ThreadLocalClassLoaderConfiguration(org.apache.hadoop.conf.Configuration other)
public ClassLoader getClassLoader()
getClassLoader in class org.apache.hadoop.conf.Configurationpublic Class<?> getClassByNameOrNull(String name)
getClassByNameOrNull in class org.apache.hadoop.conf.ConfigurationCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.