HADOOP-12789. log classpath of ApplicationClassLoader at INFO level. (Sangjin Lee via mingma)
(cherry picked from commit 49eedc7ff0
)
This commit is contained in:
parent
fe0009a2bd
commit
aae39ff973
|
@ -94,10 +94,6 @@ public class ApplicationClassLoader extends URLClassLoader {
|
||||||
public ApplicationClassLoader(URL[] urls, ClassLoader parent,
|
public ApplicationClassLoader(URL[] urls, ClassLoader parent,
|
||||||
List<String> systemClasses) {
|
List<String> systemClasses) {
|
||||||
super(urls, parent);
|
super(urls, parent);
|
||||||
if (LOG.isDebugEnabled()) {
|
|
||||||
LOG.debug("urls: " + Arrays.toString(urls));
|
|
||||||
LOG.debug("system classes: " + systemClasses);
|
|
||||||
}
|
|
||||||
this.parent = parent;
|
this.parent = parent;
|
||||||
if (parent == null) {
|
if (parent == null) {
|
||||||
throw new IllegalArgumentException("No parent classloader!");
|
throw new IllegalArgumentException("No parent classloader!");
|
||||||
|
@ -106,6 +102,7 @@ public class ApplicationClassLoader extends URLClassLoader {
|
||||||
this.systemClasses = (systemClasses == null || systemClasses.isEmpty()) ?
|
this.systemClasses = (systemClasses == null || systemClasses.isEmpty()) ?
|
||||||
Arrays.asList(StringUtils.getTrimmedStrings(SYSTEM_CLASSES_DEFAULT)) :
|
Arrays.asList(StringUtils.getTrimmedStrings(SYSTEM_CLASSES_DEFAULT)) :
|
||||||
systemClasses;
|
systemClasses;
|
||||||
|
LOG.info("classpath: " + Arrays.toString(urls));
|
||||||
LOG.info("system classes: " + this.systemClasses);
|
LOG.info("system classes: " + this.systemClasses);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue