dfshealth.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  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. <link rel="stylesheet" type="text/css" href="/static/bootstrap-3.0.2/css/bootstrap.min.css" />
  20. <link rel="stylesheet" type="text/css" href="/static/hadoop.css" />
  21. <title>Namenode information</title>
  22. </head>
  23. <body>
  24. <header class="navbar navbar-inverse bs-docs-nav" role="banner">
  25. <div class="container">
  26. <div class="navbar-header">
  27. <div class="navbar-brand">Hadoop</div>
  28. </div>
  29. <ul class="nav navbar-nav" id="ui-tabs">
  30. <li><a href="#tab-overview">Overview</a></li>
  31. <li><a href="#tab-datanode">Datanodes</a></li>
  32. <li><a href="#tab-snapshot">Snapshot</a></li>
  33. <li><a href="#tab-startup-progress">Startup Progress</a></li>
  34. <li class="dropdown">
  35. <a href="#" class="dropdown-toggle" data-toggle="dropdown">Utilities <b class="caret"></b></a>
  36. <ul class="dropdown-menu">
  37. <li><a href="explorer.html">Browse the file system</a></li>
  38. <li><a href="logs">Logs</a></li>
  39. </ul>
  40. </li>
  41. </ul>
  42. </div>
  43. </header>
  44. <div class="container">
  45. <div id="alert-panel">
  46. <div class="alert alert-danger">
  47. <button type="button" class="close" onclick="$('#alert-panel').hide();">&times;</button>
  48. <div class="alert-body" id="alert-panel-body"></div>
  49. </div>
  50. </div>
  51. <div class="tab-content">
  52. <div class="tab-pane" id="tab-overview"></div>
  53. <div class="tab-pane" id="tab-datanode"></div>
  54. <div class="tab-pane" id="tab-snapshot"></div>
  55. <div class="tab-pane" id="tab-startup-progress"></div>
  56. </div>
  57. <div class="row">
  58. <hr />
  59. <div class="col-xs-2"><p>Hadoop, 2014.</p></div>
  60. <div class="col-xs-1 pull-right"><a style="color: #ddd" href="dfshealth.jsp">Legacy UI</a></div>
  61. </div>
  62. </div>
  63. <script type="text/x-dust-template" id="tmpl-dfshealth">
  64. {#nn}
  65. {@if cond="{DistinctVersionCount} > 1 || '{RollingUpgradeStatus}'.length"}
  66. <div class="alert alert-dismissable alert-info">
  67. <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  68. {#RollingUpgradeStatus}
  69. <p>Rolling upgrade started at {#helper_date_tostring value="{startTime}"/}. </br>
  70. {#createdRollbackImages}
  71. Rollback image has been created. Proceed to upgrade daemons.
  72. {:else}
  73. Rollback image has not been created.
  74. {/createdRollbackImages}
  75. </p>
  76. {/RollingUpgradeStatus}
  77. {@if cond="{DistinctVersionCount} > 1"}
  78. There are {DistinctVersionCount} versions of datanodes currently live:
  79. {#DistinctVersions}
  80. {key} ({value}) {@sep},{/sep}
  81. {/DistinctVersions}
  82. {/if}
  83. </div>
  84. {/if}
  85. {@if cond="{NumberOfMissingBlocks} > 0"}
  86. <div class="alert alert-dismissable alert-warning">
  87. <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  88. <p>There are {NumberOfMissingBlocks} missing blocks. The following files may be corrupted:</p>
  89. <br/>
  90. <div class="well">
  91. {#CorruptFiles}
  92. {.}<br/>
  93. {/CorruptFiles}
  94. </div>
  95. <p>Please check the logs or run fsck in order to identify the missing blocks. See the Hadoop FAQ for common causes and potential solutions.</p>
  96. </div>
  97. {/if}
  98. {/nn}
  99. <div class="page-header"><h1>Overview {#nnstat}<small>'{HostAndPort}' ({State})</small>{/nnstat}</h1></div>
  100. {#nn}
  101. <table class="table table-bordered table-striped">
  102. <tr><th>Started:</th><td>{NNStarted}</td></tr>
  103. <tr><th>Version:</th><td>{Version}</td></tr>
  104. <tr><th>Compiled:</th><td>{CompileInfo}</td></tr>
  105. <tr><th>Cluster ID:</th><td>{ClusterId}</td></tr>
  106. <tr><th>Block Pool ID:</th><td>{BlockPoolId}</td></tr>
  107. </table>
  108. {/nn}
  109. <div class="page-header"><h1>Summary</h1></div>
  110. <p>
  111. Security is {#nnstat}{#SecurityEnabled}on{:else}off{/SecurityEnabled}{/nnstat}.</p>
  112. <p>{#nn}{#Safemode}{.}{:else}Safemode is off.{/Safemode}{/nn}</p>
  113. <p>
  114. {#fs}
  115. {FilesTotal} files and directories, {BlocksTotal} blocks = {@math key="{FilesTotal}" method="add" operand="{BlocksTotal}"/} total filesystem object(s).
  116. {#helper_fs_max_objects/}
  117. {/fs}
  118. </p>
  119. {#mem.HeapMemoryUsage}
  120. <p>Heap Memory used {used|fmt_bytes} of {committed|fmt_bytes} Heap Memory. Max Heap Memory is {max|fmt_bytes}. </p>
  121. {/mem.HeapMemoryUsage}
  122. {#mem.NonHeapMemoryUsage}
  123. <p>Non Heap Memory used {used|fmt_bytes} of {committed|fmt_bytes} Commited Non Heap Memory. Max Non Heap Memory is {max|fmt_bytes}. </p>
  124. {/mem.NonHeapMemoryUsage}
  125. {#nn}
  126. <table class="table table-bordered table-striped">
  127. <tr><th> Configured Capacity:</th><td>{Total|fmt_bytes}</td></tr>
  128. <tr><th> DFS Used:</th><td>{Used|fmt_bytes}</td></tr>
  129. <tr><th> Non DFS Used:</th><td>{NonDfsUsedSpace|fmt_bytes}</td></tr>
  130. <tr><th> DFS Remaining:</th><td>{Free|fmt_bytes}</td></tr>
  131. <tr><th> DFS Used%:</th><td>{PercentUsed|fmt_percentage}</td></tr>
  132. <tr><th> DFS Remaining%:</th><td>{PercentRemaining|fmt_percentage}</td></tr>
  133. <tr><th> Block Pool Used:</th><td>{BlockPoolUsedSpace|fmt_bytes}</td></tr>
  134. <tr><th> Block Pool Used%:</th><td>{PercentBlockPoolUsed|fmt_percentage}</td></tr>
  135. <tr><th> DataNodes usages% (Min/Median/Max/stdDev): </th>
  136. <td>{#NodeUsage.nodeUsage}{min} / {median} / {max} / {stdDev}{/NodeUsage.nodeUsage}</td></tr>
  137. {/nn}
  138. {#fs}
  139. <tr><th><a href="#tab-datanode">Live Nodes</a></th><td>{NumLiveDataNodes} (Decommissioned: {NumDecomLiveDataNodes})</td></tr>
  140. <tr><th><a href="#tab-datanode">Dead Nodes</a></th><td>{NumDeadDataNodes} (Decommissioned: {NumDecomDeadDataNodes})</td></tr>
  141. <tr><th><a href="#tab-datanode">Decommissioning Nodes</a></th><td>{NumDecommissioningDataNodes}</td></tr>
  142. <tr><th title="Excludes missing blocks.">Number of Under-Replicated Blocks</th><td>{UnderReplicatedBlocks}</td></tr>
  143. <tr><th>Number of Blocks Pending Deletion</th><td>{PendingDeletionBlocks}</td></tr>
  144. {/fs}
  145. </table>
  146. <div class="page-header"><h1>NameNode Journal Status</h1></div>
  147. <p><b>Current transaction ID:</b> {nn.JournalTransactionInfo.LastAppliedOrWrittenTxId}</p>
  148. <table class="table" title="NameNode Journals">
  149. <thead>
  150. <tr><th>Journal Manager</th><th>State</th></tr>
  151. </thead>
  152. <tbody>
  153. {#nn.NameJournalStatus}
  154. <tr><td>{manager}</td><td>{stream}</td></tr>
  155. {/nn.NameJournalStatus}
  156. </tbody>
  157. </table>
  158. <div class="page-header"><h1>NameNode Storage</h1></div>
  159. <table class="table" title="NameNode Storage">
  160. <thead><tr><td><b>Storage Directory</b></td><td><b>Type</b></td><td><b>State</b></td></tr></thead>
  161. {#nn.NameDirStatuses}
  162. {#active}{#helper_dir_status type="Active"/}{/active}
  163. {#failed}{#helper_dir_status type="Failed"/}{/failed}
  164. {/nn.NameDirStatuses}
  165. </table>
  166. </script>
  167. <script type="text/x-dust-template" id="tmpl-snapshot">
  168. <div class="page-header"><h1>Snapshot Summary</h1></div>
  169. <div class="page-header"><h1><small>Snapshottable directories: {@size key=SnapshotStats.directory}{/size}</small></div>
  170. <small>
  171. <table class="table">
  172. <thead>
  173. <tr>
  174. <th>Path</th>
  175. <th>Snapshot Number</th>
  176. <th>Snapshot Quota</th>
  177. <th>Modification Time</th>
  178. <th>Permission</th>
  179. <th>Owner</th>
  180. <th>Group</th>
  181. </tr>
  182. </thead>
  183. {#SnapshotStats.directory}
  184. <tr>
  185. <td>{path}</td>
  186. <td>{snapshotNumber}</td>
  187. <td>{snapshotQuota}</td>
  188. <td>{modificationTime|date_tostring}</td>
  189. <td>{permission|helper_to_permission}</td>
  190. <td>{owner}</td>
  191. <td>{group}</td>
  192. </tr>
  193. {/SnapshotStats.directory}
  194. </table>
  195. </small>
  196. <div class="page-header"><h1><small>Snapshotted directories: {@size key=SnapshotStats.snapshots}{/size}</small></div>
  197. <small>
  198. <table class="table">
  199. <thead>
  200. <tr>
  201. <th>Snapshot ID</th>
  202. <th>Snapshot Directory</th>
  203. <th>Modification Time</th>
  204. </tr>
  205. </thead>
  206. {#SnapshotStats.snapshots}
  207. <tr>
  208. <td>{snapshotID}</td>
  209. <td>{snapshotDirectory}</td>
  210. <td>{modificationTime|date_tostring}</td>
  211. </tr>
  212. {/SnapshotStats.snapshots}
  213. </table>
  214. </small>
  215. </script>
  216. <script type="text/x-dust-template" id="tmpl-datanode">
  217. <div class="page-header"><h1>Datanode Information</h1></div>
  218. <div class="page-header"><h1><small>In operation</small></h1></div>
  219. <small>
  220. <table class="table">
  221. <thead>
  222. <tr>
  223. <th>Node</th>
  224. <th>Last contact</th>
  225. <th>Admin State</th>
  226. <th>Capacity</th>
  227. <th>Used</th>
  228. <th>Non DFS Used</th>
  229. <th>Remaining</th>
  230. <th>Blocks</th>
  231. <th>Block pool used</th>
  232. <th>Failed Volumes</th>
  233. <th>Version</th>
  234. </tr>
  235. </thead>
  236. {#LiveNodes}
  237. <tr>
  238. <td>{name} ({xferaddr})</td>
  239. <td>{lastContact}</td>
  240. <td>{adminState}</td>
  241. <td>{capacity|fmt_bytes}</td>
  242. <td>{used|fmt_bytes}</td>
  243. <td>{nonDfsUsedSpace|fmt_bytes}</td>
  244. <td>{remaining|fmt_bytes}</td>
  245. <td>{numBlocks}</td>
  246. <td>{blockPoolUsed|fmt_bytes} ({blockPoolUsedPercent|fmt_percentage})</td>
  247. <td>{volfails}</td>
  248. <td>{version}</td>
  249. </tr>
  250. {/LiveNodes}
  251. {#DeadNodes}
  252. <tr class="danger">
  253. <td>{name} ({xferaddr})</td>
  254. <td>{lastContact}</td>
  255. <td>Dead{?decomissioned}, Decomissioned{/decomissioned}</td>
  256. <td>-</td>
  257. <td>-</td>
  258. <td>-</td>
  259. <td>-</td>
  260. <td>-</td>
  261. <td>-</td>
  262. <td>-</td>
  263. <td>-</td>
  264. </tr>
  265. {/DeadNodes}
  266. </table>
  267. </small>
  268. <div class="page-header"><h1><small>Decomissioning</small></h1></div>
  269. <small>
  270. <table class="table">
  271. <thead>
  272. <tr>
  273. <th>Node</th>
  274. <th>Last contact</th>
  275. <th>Under replicated blocks</th>
  276. <th>Blocks with no live replicas</th>
  277. <th>Under Replicated Blocks <br/>In files under construction</th>
  278. </tr>
  279. </thead>
  280. {#DecomNodes}
  281. <tr>
  282. <td>{name} ({xferaddr})</td>
  283. <td>{lastContact}</td>
  284. <td>{underReplicatedBlocks}</td>
  285. <td>{decommissionOnlyReplicas}</td>
  286. <td>{underReplicateInOpenFiles}</td>
  287. </tr>
  288. {/DecomNodes}
  289. </table>
  290. </small>
  291. </script>
  292. <script type="text/x-dust-template" id="tmpl-startup-progress">
  293. <div class="page-header"><h1>Startup Progress</h1></div>
  294. <p>Elapsed Time: {elapsedTime|fmt_time}, Percent Complete: {percentComplete|fmt_percentage}</p>
  295. <table class="table">
  296. <thead>
  297. <tr class="active">
  298. <th>Phase</th>
  299. <th style="text-align:center">Completion</th>
  300. <th style="text-align:center">Elapsed Time</th>
  301. </tr>
  302. </thead>
  303. <tbody>
  304. {#phases}
  305. <tr class="phase">
  306. <td class="startupdesc">{desc} {file} {size|fmt_bytes}</td>
  307. <td style="text-align:center">{percentComplete|fmt_percentage}</td>
  308. <td style="text-align:center">{elapsedTime|fmt_time}</td>
  309. </tr>
  310. {#steps root_file=file}
  311. <tr class="step">
  312. <td class="startupdesc">{stepDesc} {stepFile} {stepSize|fmt_bytes} ({count}/{total})</td>
  313. <td style="text-align:center">{percentComplete|fmt_percentage}</td>
  314. <td></td>
  315. </tr>
  316. {/steps}
  317. {/phases}
  318. </tbody>
  319. </table>
  320. </script>
  321. <script type="text/javascript" src="/static/jquery-1.10.2.min.js">
  322. </script><script type="text/javascript" src="/static/bootstrap-3.0.2/js/bootstrap.min.js">
  323. </script><script type="text/javascript" src="/static/dust-full-2.0.0.min.js">
  324. </script><script type="text/javascript" src="/static/dust-helpers-1.1.1.min.js">
  325. </script><script type="text/javascript" src="dfs-dust.js">
  326. </script><script type="text/javascript" src="dfshealth.js">
  327. </script>
  328. </body>
  329. </html>