Created
April 6, 2015 22:12
-
-
Save frsyuki/199c661445ff0df8765e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- ./hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/ApplicationClassLoader.java 2015-04-06 15:11:21.000000000 -0700 | |
| +++ ./hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/ApplicationClassLoader.java.load 2015-04-06 15:11:35.000000000 -0700 | |
| @@ -116,6 +116,14 @@ | |
| if (LOG.isDebugEnabled()) { | |
| LOG.debug("getResource("+name+")=" + url); | |
| } | |
| + } else if (!isSystemClass(name, systemClasses)) { | |
| + url= findResource(name); | |
| + if (url == null && name.startsWith("/")) { | |
| + if (LOG.isDebugEnabled()) { | |
| + LOG.debug("Remove leading / off " + name); | |
| + } | |
| + url= findResource(name.substring(1)); | |
| + } | |
| } | |
| return url; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment