MAPREDUCE-2987. Fixed display of logged user on RM Web-UI. Contributed by Thomas Graves.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1171901 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9a11a3a0b3
commit
2eab7a28c7
|
@ -1336,6 +1336,9 @@ Release 0.23.0 - Unreleased
|
||||||
MAPREDUCE-3007. Fixed Yarn Mapreduce client to be able to connect to
|
MAPREDUCE-3007. Fixed Yarn Mapreduce client to be able to connect to
|
||||||
JobHistoryServer in secure mode. (vinodkv)
|
JobHistoryServer in secure mode. (vinodkv)
|
||||||
|
|
||||||
|
MAPREDUCE-2987. Fixed display of logged user on RM Web-UI. (Thomas Graves
|
||||||
|
via acmurthy)
|
||||||
|
|
||||||
Release 0.22.0 - Unreleased
|
Release 0.22.0 - Unreleased
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -23,10 +23,14 @@ import static org.apache.hadoop.yarn.webapp.Params.*;
|
||||||
public class HeaderBlock extends HtmlBlock {
|
public class HeaderBlock extends HtmlBlock {
|
||||||
|
|
||||||
@Override protected void render(Block html) {
|
@Override protected void render(Block html) {
|
||||||
|
String loggedIn = "";
|
||||||
|
if (request().getRemoteUser() != null) {
|
||||||
|
loggedIn = "Logged in as: " + request().getRemoteUser();
|
||||||
|
}
|
||||||
html.
|
html.
|
||||||
div("#header.ui-widget").
|
div("#header.ui-widget").
|
||||||
div("#user").
|
div("#user").
|
||||||
_("Logged in as: "+ request().getRemoteUser())._().
|
_(loggedIn)._().
|
||||||
div("#logo").
|
div("#logo").
|
||||||
img("/static/hadoop-st.png")._().
|
img("/static/hadoop-st.png")._().
|
||||||
h1($(TITLE))._();
|
h1($(TITLE))._();
|
||||||
|
|
Loading…
Reference in New Issue