|
@@ -27,7 +27,6 @@ import org.apache.hadoop.yarn.server.resourcemanager.ResourceManager;
|
|
|
import org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttempt;
|
|
|
import org.apache.hadoop.yarn.server.resourcemanager.scheduler.AbstractYarnScheduler;
|
|
|
import org.apache.hadoop.yarn.server.resourcemanager.scheduler.SchedulerApplicationAttempt;
|
|
|
-import org.apache.hadoop.yarn.server.resourcemanager.webapp.RMAppAttemptBlock;
|
|
|
import org.apache.hadoop.yarn.util.ConverterUtils;
|
|
|
import org.apache.hadoop.yarn.webapp.util.WebAppUtils;
|
|
|
|
|
@@ -46,7 +45,8 @@ public class AppAttemptInfo {
|
|
|
public AppAttemptInfo() {
|
|
|
}
|
|
|
|
|
|
- public AppAttemptInfo(ResourceManager rm, RMAppAttempt attempt, String user) {
|
|
|
+ public AppAttemptInfo(ResourceManager rm, RMAppAttempt attempt, String user,
|
|
|
+ String schemePrefix) {
|
|
|
this.startTime = 0;
|
|
|
this.containerId = "";
|
|
|
this.nodeHttpAddress = "";
|
|
@@ -61,9 +61,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);
|
|
|
if (rm.getResourceScheduler() instanceof AbstractYarnScheduler) {
|
|
|
AbstractYarnScheduler ayScheduler =
|
|
|
(AbstractYarnScheduler) rm.getResourceScheduler();
|