YARN-3430. Made headroom data available on app attempt page of RM WebUI. Contributed by Xuan Gong.
This commit is contained in:
parent
ed72daa5df
commit
8366a36ad3
@ -870,6 +870,9 @@ Release 2.7.0 - UNRELEASED
|
|||||||
removing inconsistencies in the default values. (Junping Du and Karthik
|
removing inconsistencies in the default values. (Junping Du and Karthik
|
||||||
Kambatla via vinodkv)
|
Kambatla via vinodkv)
|
||||||
|
|
||||||
|
YARN-3430. Made headroom data available on app attempt page of RM WebUI.
|
||||||
|
(Xuan Gong via zjshen)
|
||||||
|
|
||||||
Release 2.6.0 - 2014-11-18
|
Release 2.6.0 - 2014-11-18
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -166,10 +166,12 @@ protected void createAttemptHeadRoomTable(Block html) {
|
|||||||
if (attempt != null) {
|
if (attempt != null) {
|
||||||
if (!isApplicationInFinalState(YarnApplicationAttemptState
|
if (!isApplicationInFinalState(YarnApplicationAttemptState
|
||||||
.valueOf(attempt.getAppAttemptState().toString()))) {
|
.valueOf(attempt.getAppAttemptState().toString()))) {
|
||||||
|
RMAppAttemptMetrics metrics = attempt.getRMAppAttemptMetrics();
|
||||||
DIV<Hamlet> pdiv = html._(InfoBlock.class).div(_INFO_WRAP);
|
DIV<Hamlet> pdiv = html._(InfoBlock.class).div(_INFO_WRAP);
|
||||||
info("Application Attempt Overview").clear();
|
info("Application Attempt Overview").clear();
|
||||||
info("Application Attempt Metrics")._(
|
info("Application Attempt Metrics")._(
|
||||||
"Application Attempt Headroom : ", 0);
|
"Application Attempt Headroom : ", metrics == null ? "N/A" :
|
||||||
|
metrics.getApplicationAttemptHeadroom());
|
||||||
pdiv._();
|
pdiv._();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user