From 47f884e06af98764cc1f8a6bde690396f1176e15 Mon Sep 17 00:00:00 2001 From: Ming Ma Date: Mon, 7 Mar 2016 20:26:19 -0800 Subject: [PATCH] HADOOP-12789. log classpath of ApplicationClassLoader at INFO level. (Sangjin Lee via mingma) (cherry picked from commit 49eedc7ff02ea61764f416f0e2ddf81370aec5fb) --- .../java/org/apache/hadoop/util/ApplicationClassLoader.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ApplicationClassLoader.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ApplicationClassLoader.java index 6d37c28774e..8c1601a0cbd 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ApplicationClassLoader.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/ApplicationClassLoader.java @@ -94,10 +94,6 @@ public class ApplicationClassLoader extends URLClassLoader { public ApplicationClassLoader(URL[] urls, ClassLoader parent, List systemClasses) { super(urls, parent); - if (LOG.isDebugEnabled()) { - LOG.debug("urls: " + Arrays.toString(urls)); - LOG.debug("system classes: " + systemClasses); - } this.parent = parent; if (parent == null) { throw new IllegalArgumentException("No parent classloader!"); @@ -106,6 +102,7 @@ public class ApplicationClassLoader extends URLClassLoader { this.systemClasses = (systemClasses == null || systemClasses.isEmpty()) ? Arrays.asList(StringUtils.getTrimmedStrings(SYSTEM_CLASSES_DEFAULT)) : systemClasses; + LOG.info("classpath: " + Arrays.toString(urls)); LOG.info("system classes: " + this.systemClasses); }