Package org.apache.flink.orc.writer
Class ThreadLocalClassLoaderConfiguration
java.lang.Object
org.apache.hadoop.conf.Configuration
org.apache.flink.orc.writer.ThreadLocalClassLoaderConfiguration
@Internal
public final class ThreadLocalClassLoaderConfiguration
extends org.apache.hadoop.conf.Configuration
Workaround for https://issues.apache.org/jira/browse/ORC-653.
Since the conf is effectively cached across Flink jobs, at least force the thread local classloader to avoid classloader leaks.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.conf.Configuration
org.apache.hadoop.conf.Configuration.DeprecationDelta, org.apache.hadoop.conf.Configuration.IntegerRanges -
Constructor Summary
ConstructorsConstructorDescriptionThreadLocalClassLoaderConfiguration(org.apache.hadoop.conf.Configuration other) -
Method Summary
Modifier and TypeMethodDescriptionClass<?>getClassByNameOrNull(String name) getResource(String name) Methods inherited from class org.apache.hadoop.conf.Configuration
addDefaultResource, addDeprecation, addDeprecation, addDeprecation, addDeprecation, addDeprecations, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, clear, dumpConfiguration, dumpConfiguration, dumpDeprecatedKeys, get, get, 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, getStringCollection, getStrings, getStrings, getTimeDuration, getTimeDuration, getTimeDurations, getTrimmed, getTrimmed, getTrimmedStringCollection, getTrimmedStrings, getTrimmedStrings, getValByRegex, hasWarnedDeprecation, isDeprecated, 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, setStrings, setTimeDuration, size, toString, unset, updateConnectAddr, updateConnectAddr, write, writeXml, writeXml, writeXmlMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ThreadLocalClassLoaderConfiguration
public ThreadLocalClassLoaderConfiguration() -
ThreadLocalClassLoaderConfiguration
public ThreadLocalClassLoaderConfiguration(org.apache.hadoop.conf.Configuration other)
-
-
Method Details
-
getClassLoader
- Overrides:
getClassLoaderin classorg.apache.hadoop.conf.Configuration
-
getClassByNameOrNull
- Overrides:
getClassByNameOrNullin classorg.apache.hadoop.conf.Configuration
-
getResource
- Overrides:
getResourcein classorg.apache.hadoop.conf.Configuration
-