hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sangjin Lee (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-13398) prevent user classes from loading classes in the parent classpath with ApplicationClassLoader
Date Mon, 13 Feb 2017 21:40:41 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-13398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15864495#comment-15864495
] 

Sangjin Lee commented on HADOOP-13398:
--------------------------------------

Thanks Sean. I'll add a doc that summarizes the changes soon. Until then, you might want to
look at [this one|https://issues.apache.org/jira/secure/attachment/12803266/classloading-improvements-ideas-v.3.pdf]
attached to the parent JIRA (HADOOP-13070). That needs a little update as well but is still
pretty accurate.

> prevent user classes from loading classes in the parent classpath with ApplicationClassLoader
> ---------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-13398
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13398
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: util
>            Reporter: Sangjin Lee
>            Assignee: Sangjin Lee
>            Priority: Critical
>         Attachments: HADOOP-13398-HADOOP-13070.01.patch, HADOOP-13398-HADOOP-13070.02.patch,
HADOOP-13398-HADOOP-13070.03.patch, HADOOP-13398-HADOOP-13070.04.patch
>
>
> Today, a user class is able to trigger loading a class from Hadoop's dependencies, with
or without the use of {{ApplicationClassLoader}}, and it creates an implicit dependence from
users' code on Hadoop's dependencies, and as a result dependency conflicts.
> We should modify {{ApplicationClassLoader}} to prevent a user class from loading a class
from the parent classpath.
> This should also cover resource loading (including {{ClassLoader.getResources()}} and
as a corollary {{ServiceLoader}}).



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message