Sangjin Lee created HADOOP-13399: ------------------------------------ Summary: deprecate the Configuration classloader Key: HADOOP-13399 URL: https://issues.apache.org/jira/browse/HADOOP-13399 Project: Hadoop Common Issue Type: Sub-task Components: util Reporter: Sangjin Lee Assignee: Sangjin Lee Priority: Critical
Today, anyone can simply call {{Configuration.setClassLoader()}} to set the configuration classloader to any arbitrary classloader. This classloader is then used to get a class or a resource through {{Configuration}} ({{getClass()}} and {{getResource()}}). In essence, the {{Configuration}} classloader is effectively a globally shared classloader without contract. This is one step worse than TCCL in that regard. I propose to remove/deprecate {{setClassLoader()}} and {{getClassLoader()}} and simply use TCCL (and then the classloader that loaded the {{Configuration}} class) to load classes and resources. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-dev-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-dev-h...@hadoop.apache.org