|
@@ -72,6 +72,7 @@ public class FairSchedulerAppsBlock extends HtmlBlock {
|
|
|
th(".id", "ID").
|
|
|
th(".user", "User").
|
|
|
th(".name", "Name").
|
|
|
+ th(".type", "Application Type").
|
|
|
th(".queue", "Queue").
|
|
|
th(".fairshare", "Fair Share").
|
|
|
th(".starttime", "StartTime").
|
|
@@ -92,7 +93,7 @@ public class FairSchedulerAppsBlock extends HtmlBlock {
|
|
|
}
|
|
|
StringBuilder appsTableData = new StringBuilder("[\n");
|
|
|
for (RMApp app : apps.values()) {
|
|
|
- if (reqAppStates != null && !reqAppStates.contains(app.getState())) {
|
|
|
+ if (reqAppStates != null && !reqAppStates.contains(app.createApplicationState())) {
|
|
|
continue;
|
|
|
}
|
|
|
AppInfo appInfo = new AppInfo(app, true, WebAppUtils.getHttpSchemePrefix(conf));
|
|
@@ -107,6 +108,8 @@ public class FairSchedulerAppsBlock extends HtmlBlock {
|
|
|
appInfo.getUser()))).append("\",\"")
|
|
|
.append(StringEscapeUtils.escapeJavaScript(StringEscapeUtils.escapeHtml(
|
|
|
appInfo.getName()))).append("\",\"")
|
|
|
+ .append(StringEscapeUtils.escapeJavaScript(StringEscapeUtils.escapeHtml(
|
|
|
+ appInfo.getApplicationType()))).append("\",\"")
|
|
|
.append(StringEscapeUtils.escapeJavaScript(StringEscapeUtils.escapeHtml(
|
|
|
appInfo.getQueue()))).append("\",\"")
|
|
|
.append(fairShare).append("\",\"")
|