You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Sangjin Lee (JIRA)" <ji...@apache.org> on 2016/07/21 19:23:20 UTC
[jira] [Created] (HADOOP-13399) deprecate the Configuration
classloader
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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org