balancer.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <!--
  4. Licensed to the Apache Software Foundation (ASF) under one or more
  5. contributor license agreements. See the NOTICE file distributed with
  6. this work for additional information regarding copyright ownership.
  7. The ASF licenses this file to You under the Apache License, Version 2.0
  8. (the "License"); you may not use this file except in compliance with
  9. the License. You may obtain a copy of the License at
  10. http://www.apache.org/licenses/LICENSE-2.0
  11. Unless required by applicable law or agreed to in writing, software
  12. distributed under the License is distributed on an "AS IS" BASIS,
  13. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. See the License for the specific language governing permissions and
  15. limitations under the License.
  16. -->
  17. <html xmlns="http://www.w3.org/1999/xhtml">
  18. <head>
  19. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  20. <link rel="stylesheet" type="text/css" href="/static/bootstrap-3.4.1/css/bootstrap.min.css" />
  21. <link rel="stylesheet" type="text/css" href="/static/hadoop.css" />
  22. <title>Balancer Information</title>
  23. </head>
  24. <body>
  25. <header class="navbar navbar-inverse bs-docs-nav" role="banner">
  26. <div class="container">
  27. <div class="navbar-header">
  28. <div class="navbar-brand">Hadoop</div>
  29. </div>
  30. <ul class="nav navbar-nav" id="ui-tabs">
  31. <li><a href="#tab-overview">Overview</a></li>
  32. <li class="dropdown">
  33. <a href="#" class="dropdown-toggle" data-toggle="dropdown">Utilities <b class="caret"></b></a>
  34. <ul class="dropdown-menu">
  35. <li><a href="logs/">Logs</a></li>
  36. <li><a href="logLevel">Log Level</a></li>
  37. <li><a href="jmx">Metrics</a></li>
  38. <li><a href="conf">Configuration</a></li>
  39. <li><a href="stacks">Process Thread Dump</a></li>
  40. </ul>
  41. </li>
  42. </ul>
  43. </div>
  44. </header>
  45. <div class="container">
  46. <div id="alert-panel">
  47. <div class="alert alert-danger">
  48. <button type="button" class="close" onclick="$('#alert-panel').hide();">&times;</button>
  49. <div class="alert-body" id="alert-panel-body"></div>
  50. </div>
  51. </div>
  52. <div class="tab-content">
  53. <div class="tab-pane" id="tab-overview"></div>
  54. </div>
  55. <div class="row">
  56. <hr />
  57. <div class="col-xs-2"><p>Hadoop, {release-year-token}.</p></div>
  58. </div>
  59. </div>
  60. <script type="text/x-dust-template" id="tmpl-balancer">
  61. {#balancer}
  62. <div class="page-header">
  63. <h1>Balancer on <small>{HostName}</small></h1>
  64. </div>
  65. <table class="table table-bordered table-striped">
  66. <tr><th>Started:</th><td>{BalancerStartedTimeInMillis|date_tostring}</td></tr>
  67. <tr><th>Version:</th><td>{Version}</td></tr>
  68. <tr><th>Compiled:</th><td>{CompileInfo}</td></tr>
  69. </table>
  70. {/balancer}
  71. <div class="page-header">
  72. <h1>Balancer Status</h1>
  73. </div>
  74. <table class="table">
  75. <thead>
  76. <tr>
  77. <th>Block Pool ID</th>
  78. <th>BytesLeftToMove</th>
  79. <th>NumOfOverUtilizedNodes</th>
  80. <th>NumOfUnderUtilizedNodes</th>
  81. <th>BytesMovedInCurrentRun</th>
  82. </tr>
  83. </thead>
  84. {#balancers}
  85. <tr>
  86. <td>{BlockPoolID}</td>
  87. <td>{BytesLeftToMove|fmt_bytes}</td>
  88. <td>{NumOfOverUtilizedNodes}</td>
  89. <td>{NumOfUnderUtilizedNodes}</td>
  90. <td>{BytesMovedInCurrentRun|fmt_bytes}</td>
  91. </tr>
  92. {/balancers}
  93. </table>
  94. </script>
  95. <script type="text/javascript" src="/static/jquery-3.6.0.min.js"></script>
  96. <script type="text/javascript" src="/static/bootstrap-3.4.1/js/bootstrap.min.js"></script>
  97. <script type="text/javascript" src="/static/moment.min.js"></script>
  98. <script type="text/javascript" src="/static/dust-full-2.0.0.min.js"></script>
  99. <script type="text/javascript" src="/static/dust-helpers-1.1.1.min.js"></script>
  100. <script type="text/javascript" src="/static/dfs-dust.js"></script>
  101. <script type="text/javascript" src="balancer.js"></script>
  102. </body>
  103. </html>