HDFS-13195. DataNode conf page cannot display the current value after reconfig. Contributed by maobaolong.

(cherry picked from commit 66461ed98b0b2f630b682bff927dbd74c251c26e)
(cherry picked from commit c245eceddad8883103df30bbff9a285798f29fdf)
This commit is contained in:
Kihwal Lee 2018-03-22 12:28:34 -05:00 committed by Wangda Tan
parent 05b9f0f5b7
commit c05dd318bf

View File

@ -120,6 +120,7 @@ public DatanodeHttpServer(final Configuration conf,
this.infoServer = builder.build(); this.infoServer = builder.build();
this.infoServer.setAttribute(HttpServer2.CONF_CONTEXT_ATTRIBUTE, conf);
this.infoServer.setAttribute("datanode", datanode); this.infoServer.setAttribute("datanode", datanode);
this.infoServer.setAttribute(JspHelper.CURRENT_CONF, conf); this.infoServer.setAttribute(JspHelper.CURRENT_CONF, conf);
this.infoServer.addServlet(null, "/blockScannerReport", this.infoServer.addServlet(null, "/blockScannerReport",