dfshealth.dust.html 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. <div class="page-header">
  2. {#nnstat}
  3. <h1>NameNode '{HostAndPort}' ({State})</h1>
  4. {/nnstat}
  5. </div>
  6. {#nn}
  7. {@if cond="{DistinctVersionCount} > 1"}
  8. <div class="alert alert-dismissable alert-success">
  9. <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  10. There are {DistinctVersionCount} versions of datanodes currently live:
  11. {#DistinctVersions}
  12. {key} ({value}) {@sep},{/sep}
  13. {/DistinctVersions}
  14. </div>
  15. {/if}
  16. {@if cond="{NumberOfMissingBlocks} > 0"}
  17. <div class="alert alert-dismissable alert-warning">
  18. <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  19. <p>There are {NumberOfMissingBlocks} missing blocks. The following files may be corrupted:</p>
  20. <br/>
  21. <div class="well">
  22. {#CorruptFiles}
  23. {.}<br/>
  24. {/CorruptFiles}
  25. </div>
  26. <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>
  27. </div>
  28. {/if}
  29. {/nn}
  30. <div class="panel panel-primary">
  31. <div class="panel-heading">Overview</div>
  32. <div class="panel-body">
  33. {#nn}
  34. <table class="table table-bordered">
  35. <tr><th>Started:</th><td>{NNStarted}</td></tr>
  36. <tr><th>Version:</th><td>{Version}</td></tr>
  37. <tr><th>Compiled:</th><td>{CompileInfo}</td></tr>
  38. <tr><th>Cluster ID:</th><td>{ClusterId}</td></tr>
  39. <tr><th>Block Pool ID:</th><td>{BlockPoolId}</td></tr>
  40. </table>
  41. {/nn}
  42. </div>
  43. </div>
  44. <a id="browse-dir-first" style="cursor:pointer">Browse the filesystem</a> <a href="/logs/">NameNode Logs</a>
  45. <hr/>
  46. <div class="panel panel-primary">
  47. <div class="panel-heading">Cluster Summary</div>
  48. <div class="panel-body">
  49. <p>
  50. Security is {#nnstat}{#SecurityModeEnabled}on{:else}off{/SecurityModeEnabled}{/nnstat}.</p>
  51. <p>{#nn}{#Safemode}{.}{:else}Safemode is off.{/Safemode}{/nn}</p>
  52. <p>
  53. {#fs}
  54. {TotalLoad} files and directories, {BlocksTotal} blocks = {FilesTotal} total filesystem object(s).
  55. {#helper_fs_max_objects/}
  56. {/fs}
  57. </p>
  58. {#mem.HeapMemoryUsage}
  59. <p>Heap Memory used {used|fmt_bytes} of {committed|fmt_bytes} Heap Memory. Max Heap Memory is {max|fmt_bytes}. </p>
  60. {/mem.HeapMemoryUsage}
  61. {#mem.NonHeapMemoryUsage}
  62. <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>
  63. {/mem.NonHeapMemoryUsage}
  64. {#nn}
  65. <table class="table table-bordered table-striped">
  66. <tr><th> Configured Capacity:</th><td>{Total|fmt_bytes}</td></tr>
  67. <tr><th> DFS Used:</th><td>{Used|fmt_bytes}</td></tr>
  68. <tr><th> Non DFS Used:</th><td>{NonDfsUsedSpace|fmt_bytes}</td></tr>
  69. <tr><th> DFS Remaining:</th><td>{Free|fmt_bytes}</td></tr>
  70. <tr><th> DFS Used%:</th><td>{PercentUsed|fmt_percentage}</td></tr>
  71. <tr><th> DFS Remaining%:</th><td>{PercentRemaining|fmt_percentage}</td></tr>
  72. <tr><th> Block Pool Used:</th><td>{BlockPoolUsedSpace|fmt_bytes}</td></tr>
  73. <tr><th> Block Pool Used%:</th><td>{PercentBlockPoolUsed|fmt_percentage}</td></tr>
  74. <tr><th> DataNodes usages% (Min/Median/Max/stdDev): </th>
  75. <td>{#NodeUsage.nodeUsage}{min} / {median} / {max} / {stdDev}{/NodeUsage.nodeUsage}</td></tr>
  76. {/nn}
  77. {#fs}
  78. <tr><th><a href="#nodelist-operation">Live Nodes</a></th><td>{NumLiveDataNodes} (Decommissioned: {NumDecomLiveDataNodes})</td></tr>
  79. <tr><th><a href="#nodelist-operation">Dead Nodes</a></th><td>{NumDeadDataNodes} (Decommissioned: {NumDecomDeadDataNodes})</td></tr>
  80. <tr><th><a href="#nodelist-decom">Decommissioning Nodes</a></th><td>{NumDecommissioningDataNodes}</td></tr>
  81. <tr><th title="Excludes missing blocks.">Number of Under-Replicated Blocks</th><td>{UnderReplicatedBlocks}</td></tr>
  82. {/fs}
  83. </table>
  84. </div>
  85. </div>
  86. <hr/>
  87. <div class="panel panel-primary">
  88. <div class="panel-heading">NameNode Journal Status</div>
  89. <div class="panel-body">
  90. <p><b>Current transaction ID:</b> {nn.JournalTransactionInfo.LastAppliedOrWrittenTxId}</p>
  91. <table class="table" title="NameNode Journals">
  92. <thead>
  93. <tr><th>Journal Manager</th><th>State</th></tr>
  94. </thead>
  95. <tbody>
  96. {#nn.NameJournalStatus}
  97. <tr><td>{manager}</td><td>{stream}</td></tr>
  98. {/nn.NameJournalStatus}
  99. </tbody>
  100. </table>
  101. </div>
  102. </div>
  103. <hr/>
  104. <div class="panel panel-primary">
  105. <div class="panel-heading">NameNode Storage</div>
  106. <div class="panel-body">
  107. <table class="table" title="NameNode Storage">
  108. <thead><tr><td><b>Storage Directory</b></td><td><b>Type</b></td><td><b>State</b></td></tr></thead>
  109. {#nn.NameDirStatuses}
  110. {#active}{#helper_dir_status type="Active"/}{/active}
  111. {#failed}{#helper_dir_status type="Failed"/}{/failed}
  112. {/nn.NameDirStatuses}
  113. </table>
  114. </div>
  115. </div>
  116. <hr/>
  117. <div class="panel panel-primary">
  118. <div class="panel-heading">Snapshot Summary</div>
  119. <div class="panel-body">
  120. {#fs.SnapshotStats}
  121. <table class="table" title="Snapshot Summary">
  122. <thead><tr><td><b>Snapshottable directories</b></td>
  123. <td><b>Snapshotted directories</b></td></tr>
  124. </thead>
  125. <tbody>
  126. <tr>
  127. <td>{SnapshottableDirectories}</td>
  128. <td>{Snapshots}</td>
  129. </tr>
  130. </tbody>
  131. </table>
  132. {/fs.SnapshotStats}
  133. </div>
  134. </div>
  135. <hr/>
  136. {#startup}
  137. <div class="panel panel-primary">
  138. <div class="panel-heading">Startup Progress</div>
  139. <div class="panel-body">
  140. <p>Elapsed Time: {elapsedTime|fmt_time}, Percent Complete: {percentComplete|fmt_percentage}</p>
  141. <table class="table">
  142. <thead>
  143. <tr>
  144. <th>Phase</th>
  145. <th>Completion</th>
  146. <th>Elapsed Time</th>
  147. </tr>
  148. </thead>
  149. <tbody>
  150. {#phases}
  151. <tr class="phase">
  152. <td class="startupdesc">{desc} {file} {size|fmt_bytes}</td>
  153. <td>{percentComplete|fmt_percentage}</td>
  154. <td>{elapsedTime|fmt_time}</td>
  155. </tr>
  156. {#steps root_file=file}
  157. <tr class="step">
  158. <td class="startupdesc">{stepDesc} {stepFile} {stepSize|fmt_bytes} ({count}/{total})</td>
  159. <td>{percentComplete|fmt_percentage}</td>
  160. <td></td>
  161. </tr>
  162. {/steps}
  163. {/phases}
  164. </table>
  165. </div>
  166. </div>
  167. {/startup}
  168. <hr/>
  169. <div class="panel panel-primary">
  170. <div class="panel-heading">Datanode Information</div>
  171. <div class="panel-body">
  172. <div class="panel panel-default" id="nodelist-operation">
  173. <div class="panel-heading">Nodes in operation</div>
  174. <div class="panel-body">
  175. <table class="table">
  176. <thead>
  177. <tr>
  178. <th>Node</th>
  179. <th>Last contact</th>
  180. <th>Admin State</th>
  181. <th>Capacity</th>
  182. <th>Used</th>
  183. <th>Non DFS Used</th>
  184. <th>Remaining</th>
  185. <th>Blocks</th>
  186. <th>Block pool used</th>
  187. <th>Failed Volumes</th>
  188. </tr>
  189. </thead>
  190. {#nn.LiveNodes}
  191. <tr>
  192. <td><a class="browse-dir-links" info-http-addr="{infoAddr}" info-https-addr="{infoSecureAddr}">{name}</a> ({xferaddr})</td>
  193. <td>{lastContact}</td>
  194. <td>{adminState}</td>
  195. <td>{capacity|fmt_bytes}</td>
  196. <td>{used|fmt_bytes}</td>
  197. <td>{nonDfsUsedSpace|fmt_bytes}</td>
  198. <td>{remaining|fmt_bytes}</td>
  199. <td>{numBlocks}</td>
  200. <td>{blockPoolUsed|fmt_bytes} ({blockPoolUsedPercent|fmt_percentage})</td>
  201. <td>{volfails}</td>
  202. </tr>
  203. {/nn.LiveNodes}
  204. {#nn.DeadNodes}
  205. <tr class="danger">
  206. <td>{name} ({xferaddr})</td>
  207. <td>{lastContact}</td>
  208. <td>Dead{?decomissioned}, Decomissioned{/decomissioned}</td>
  209. <td>-</td>
  210. <td>-</td>
  211. <td>-</td>
  212. <td>-</td>
  213. <td>-</td>
  214. <td>-</td>
  215. <td>-</td>
  216. </tr>
  217. {/nn.DeadNodes}
  218. </table>
  219. </div>
  220. </div>
  221. <div class="panel panel-default" id="nodelist-decom">
  222. <div class="panel-heading">Nodes being decomissioned</div>
  223. <div class="panel-body">
  224. <table class="table">
  225. <thead>
  226. <tr>
  227. <th>Node</th>
  228. <th>Last contact</th>
  229. <th>Under replicated blocks</th>
  230. <th>Blocks with no live replicas</th>
  231. <th>Under Replicated Blocks <br/>In files under construction</th>
  232. </tr>
  233. </thead>
  234. {#nn.DecomNodes}
  235. <tr>
  236. <td>{name} ({xferaddr})</td>
  237. <td>{lastContact}</td>
  238. <td>{underReplicatedBlocks}</td>
  239. <td>{decommissionOnlyReplicas}</td>
  240. <td>{underReplicateInOpenFiles}</td>
  241. </tr>
  242. {/nn.DecomNodes}
  243. </table>
  244. </div>
  245. </div>
  246. </div>
  247. </div>