Class ThreadLocalClassLoaderConfiguration

  • All Implemented Interfaces:
    Iterable<Map.Entry<String,​String>>, org.apache.hadoop.io.Writable

    @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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Class<?> getClassByNameOrNull​(String name)  
      ClassLoader getClassLoader()  
      URL 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, writeXml
    • Constructor Detail

      • ThreadLocalClassLoaderConfiguration

        public ThreadLocalClassLoaderConfiguration()
      • ThreadLocalClassLoaderConfiguration

        public ThreadLocalClassLoaderConfiguration​(org.apache.hadoop.conf.Configuration other)
    • Method Detail

      • getClassLoader

        public ClassLoader getClassLoader()
        Overrides:
        getClassLoader in class org.apache.hadoop.conf.Configuration
      • getClassByNameOrNull

        public Class<?> getClassByNameOrNull​(String name)
        Overrides:
        getClassByNameOrNull in class org.apache.hadoop.conf.Configuration
      • getResource

        public URL getResource​(String name)
        Overrides:
        getResource in class org.apache.hadoop.conf.Configuration