[YARN-11443]"State" column in YARN RM page bug

"State" column in YARN RM web page shows "undefined" while using fairscheduler.
This commit is contained in:
xihuanbanku 2023-02-19 20:00:29 +08:00 committed by GitHub
parent a3b500d046
commit 60ed024200
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 4 deletions

View File

@ -58,9 +58,13 @@ public class WebPageUtils {
StringBuilder sb = new StringBuilder();
sb.append("[\n")
.append("{'sType':'natural', 'aTargets': [0], ")
.append("'mRender': parseHadoopID },\n")
.append("{'sType':'num-ignore-str', 'aTargets': [7, 8, 9], ")
.append("'mRender': renderHadoopDate },\n");
.append("'mRender': parseHadoopID },\n");
if (isResourceManager) {
sb.append("{'sType':'num-ignore-str', 'aTargets': [7, 8, 9], ");
} else if (isFairSchedulerPage) {
sb.append("{'sType':'num-ignore-str', 'aTargets': [6, 7], ");
}
sb.append("'mRender': renderHadoopDate },\n");
if (isResourceManager) {
// Update following line if any column added in RM page before column 11
sb.append("{'sType':'num-ignore-str', ")
@ -144,4 +148,4 @@ public class WebPageUtils {
return enabledTools;
}
}
}