Repository: hadoop Updated Branches: refs/heads/branch-2.9 f0eab1035 -> c78dbefd4
HDFS-13195. DataNode conf page cannot display the current value after reconfig. Contributed by maobaolong. (cherry picked from commit d2c3a56ad8cd331040d737d0da23d1cd108987a4) Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/c78dbefd Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/c78dbefd Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/c78dbefd Branch: refs/heads/branch-2.9 Commit: c78dbefd47808f005d3d5a4c2bc2687e15a2a885 Parents: f0eab10 Author: Kihwal Lee <[email protected]> Authored: Thu Mar 22 12:36:56 2018 -0500 Committer: Kihwal Lee <[email protected]> Committed: Thu Mar 22 12:36:56 2018 -0500 ---------------------------------------------------------------------- .../apache/hadoop/hdfs/server/datanode/web/DatanodeHttpServer.java | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/c78dbefd/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/web/DatanodeHttpServer.java ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/web/DatanodeHttpServer.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/web/DatanodeHttpServer.java index a3b3b65..c44f7da 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/web/DatanodeHttpServer.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/web/DatanodeHttpServer.java @@ -121,6 +121,7 @@ public class DatanodeHttpServer implements Closeable { builder.configureXFrame(xFrameEnabled).setXFrameOption(xFrameOptionValue); this.infoServer = builder.build(); + this.infoServer.setAttribute(HttpServer2.CONF_CONTEXT_ATTRIBUTE, conf); this.infoServer.addInternalServlet(null, "/streamFile/*", StreamFile.class); this.infoServer.addInternalServlet(null, "/getFileChecksum/*", --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
