|
@@ -40,7 +40,8 @@ public class AppAttemptInfo {
|
|
|
public AppAttemptInfo() {
|
|
|
}
|
|
|
|
|
|
- public AppAttemptInfo(RMAppAttempt attempt, String user) {
|
|
|
+ public AppAttemptInfo(RMAppAttempt attempt, String user,
|
|
|
+ String schemePrefix) {
|
|
|
this.startTime = 0;
|
|
|
this.containerId = "";
|
|
|
this.nodeHttpAddress = "";
|
|
@@ -54,9 +55,9 @@ public class AppAttemptInfo {
|
|
|
this.containerId = masterContainer.getId().toString();
|
|
|
this.nodeHttpAddress = masterContainer.getNodeHttpAddress();
|
|
|
this.nodeId = masterContainer.getNodeId().toString();
|
|
|
- this.logsLink =
|
|
|
- WebAppUtils.getRunningLogURL("//" + masterContainer.getNodeHttpAddress(),
|
|
|
- ConverterUtils.toString(masterContainer.getId()), user);
|
|
|
+ this.logsLink = WebAppUtils.getRunningLogURL(schemePrefix
|
|
|
+ + masterContainer.getNodeHttpAddress(),
|
|
|
+ ConverterUtils.toString(masterContainer.getId()), user);
|
|
|
}
|
|
|
}
|
|
|
}
|