HDFS-10581. Hide redundant table on NameNode WebUI when no nodes are decomissioning. Contributed by Weiwei Yang.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/8e63fa98 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/8e63fa98 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/8e63fa98 Branch: refs/heads/HADOOP-13345 Commit: 8e63fa98eabac55bdb2254306584ad1e759c79eb Parents: a2b5d60 Author: Andrew Wang <[email protected]> Authored: Mon Dec 5 18:13:53 2016 -0800 Committer: Andrew Wang <[email protected]> Committed: Mon Dec 5 18:13:53 2016 -0800 ---------------------------------------------------------------------- .../hadoop-hdfs/src/main/webapps/hdfs/dfshealth.html | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/8e63fa98/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.html ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.html b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.html index b0db3a1..13569fe 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.html +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.html @@ -352,6 +352,7 @@ <div class="page-header"><h1><small>Decommissioning</small></h1></div> <small> +{?DecomNodes} <table class="table"> <thead> <tr> @@ -370,6 +371,9 @@ </tr> {/DecomNodes} </table> +{:else} +No nodes are decommissioning +{/DecomNodes} </small> </script> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
