You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@slider.apache.org by te...@apache.org on 2014/07/17 01:47:29 UTC
git commit: SLIDER-244 AppMaster classpath prints address of array
Repository: incubator-slider
Updated Branches:
refs/heads/develop 57098509c -> 41e34441f
SLIDER-244 AppMaster classpath prints address of array
Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/41e34441
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/41e34441
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/41e34441
Branch: refs/heads/develop
Commit: 41e34441ff303d0224da7838b91fc13ad923b1d1
Parents: 5709850
Author: tedyu <yu...@gmail.com>
Authored: Wed Jul 16 16:47:08 2014 -0700
Committer: tedyu <yu...@gmail.com>
Committed: Wed Jul 16 16:47:08 2014 -0700
----------------------------------------------------------------------
.../org/apache/slider/server/appmaster/SliderAppMaster.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/41e34441/slider-core/src/main/java/org/apache/slider/server/appmaster/SliderAppMaster.java
----------------------------------------------------------------------
diff --git a/slider-core/src/main/java/org/apache/slider/server/appmaster/SliderAppMaster.java b/slider-core/src/main/java/org/apache/slider/server/appmaster/SliderAppMaster.java
index 0b22910..3b061d5 100644
--- a/slider-core/src/main/java/org/apache/slider/server/appmaster/SliderAppMaster.java
+++ b/slider-core/src/main/java/org/apache/slider/server/appmaster/SliderAppMaster.java
@@ -742,7 +742,12 @@ public class SliderAppMaster extends AbstractSliderLaunchedService
private void startAgentWebApp(MapOperations appInformation,
Configuration serviceConf) {
- LOG_YARN.info("AM classpath:" + ((URLClassLoader) AgentWebApp.class.getClassLoader() ).getURLs());
+ URL[] urls = ((URLClassLoader) AgentWebApp.class.getClassLoader() ).getURLs();
+ StringBuilder sb = new StringBuilder("AM classpath:");
+ for (URL url : urls) {
+ sb.append("\n").append(url.toString());
+ }
+ LOG_YARN.info(sb.append("\n").toString());
// Start up the agent web app and track the URL for it
AgentWebApp agentWebApp = AgentWebApp.$for(AgentWebApp.BASE_PATH,
new WebAppApiImpl(this,