Class ThreadLocalClassLoaderConfiguration

java.lang.Object
org.apache.hadoop.conf.Configuration
org.apache.flink.orc.writer.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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    ThreadLocalClassLoaderConfiguration(org.apache.hadoop.conf.Configuration other)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods 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

      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