explorer.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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=9" />
  20. <link rel="stylesheet" type="text/css" href="/static/bootstrap-3.0.2/css/bootstrap.min.css" />
  21. <link rel="stylesheet" type="text/css" href="/static/hadoop.css" />
  22. <title>Browsing HDFS</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="dfshealth.html#tab-overview">Overview</a></li>
  32. <li><a href="dfshealth.html#tab-datanode">Datanodes</a></li>
  33. <li><a href="dfshealth.html#tab-snapshot">Snapshot</a></li>
  34. <li><a href="dfshealth.html#tab-startup-progress">Startup Progress</a></li>
  35. <li class="dropdown">
  36. <a href="#" class="dropdown-toggle" data-toggle="dropdown">Utilities <b class="caret"></b></a>
  37. <ul class="dropdown-menu">
  38. <li><a href="#">Browse the file system</a></li>
  39. <li><a href="logs">Logs</a></li>
  40. </ul>
  41. </li>
  42. </ul>
  43. </div>
  44. </header>
  45. <div class="modal" id="file-info" tabindex="-1" role="dialog" aria-hidden="true">
  46. <div class="modal-dialog">
  47. <div class="modal-content">
  48. <div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  49. <h4 class="modal-title" id="file-info-title">File information</h4>
  50. </div>
  51. <div class="modal-body" id="file-info-body">
  52. <a id="file-info-download">Download</a>
  53. <!--<a id="file-info-preview" style="cursor:pointer">Tail the file (last 32K)</a>-->
  54. <hr />
  55. <div class="panel panel-success" id="file-info-blockinfo-panel">
  56. <div class="panel-heading">
  57. Block information --
  58. <select class="btn btn-default" id="file-info-blockinfo-list">
  59. </select>
  60. </div>
  61. <div class="panel-body" id="file-info-blockinfo-body"></div>
  62. </div>
  63. <div class="panel panel-info" id="file-info-tail" style="display:none">
  64. <div class="panel-heading">File contents</div>
  65. <div class="panel-body">
  66. <div class="input-group-sm">
  67. <textarea class="form-control" style="height: 150px" id="file-info-preview-body"></textarea>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. <div class="modal-footer"><button type="button" class="btn btn-success"
  73. data-dismiss="modal">Close</button></div>
  74. </div>
  75. </div>
  76. </div>
  77. <div class="container">
  78. <div class="page-header">
  79. <h1>Browse Directory</h1>
  80. </div>
  81. <div class="alert alert-danger" id="alert-panel" style="display:none">
  82. <button type="button" class="close" onclick="$('#alert-panel').hide();">&times;</button>
  83. <div class="alert-body" id="alert-panel-body"></div>
  84. </div>
  85. <div class="row">
  86. <form onsubmit="return false;">
  87. <div class="input-group"><input type="text" class="form-control" id=
  88. "directory" /> <span class="input-group-btn"><button class="btn btn-default"
  89. type="submit" id="btn-nav-directory"><span class="input-group-btn">Go!</span></button></span></div>
  90. </form>
  91. </div>
  92. <br />
  93. <div id="panel"></div>
  94. <div class="row">
  95. <hr />
  96. <div class="col-xs-2"><p>Hadoop, {release-year-token}.</p></div>
  97. </div>
  98. </div>
  99. <script type="text/x-dust-template" id="tmpl-explorer">
  100. <table class="table">
  101. <thead>
  102. <tr>
  103. <th>Permission</th>
  104. <th>Owner</th>
  105. <th>Group</th>
  106. <th>Size</th>
  107. <th>Last Modified</th>
  108. <th>Replication</th>
  109. <th>Block Size</th>
  110. <th>Name</th>
  111. </tr>
  112. </thead>
  113. <tbody>
  114. {#FileStatus}
  115. <tr>
  116. <td>{type|helper_to_directory}{permission|helper_to_permission}{aclBit|helper_to_acl_bit}</td>
  117. <td>{owner}</td>
  118. <td>{group}</td>
  119. <td>{length|fmt_bytes}</td>
  120. <td>{#helper_date_tostring value="{modificationTime}"/}</td>
  121. <td>{replication}</td>
  122. <td>{blockSize|fmt_bytes}</td>
  123. <td><a style="cursor:pointer" inode-type="{type}" class="explorer-browse-links" inode-path="{pathSuffix}">{pathSuffix}</a></td>
  124. </tr>
  125. {/FileStatus}
  126. </tbody>
  127. </table>
  128. </script>
  129. <script type="text/x-dust-template" id="tmpl-block-info">
  130. {#block}
  131. <p>Block ID: {blockId}</p>
  132. <p>Block Pool ID: {blockPoolId}</p>
  133. <p>Generation Stamp: {generationStamp}</p>
  134. <p>Size: {numBytes}</p>
  135. {/block}
  136. <p>Availability:
  137. <ul>
  138. {#locations}
  139. <li>{hostName}</li>
  140. {/locations}
  141. </ul>
  142. </p>
  143. </script>
  144. <script type="text/javascript" src="/static/jquery-1.10.2.min.js">
  145. </script><script type="text/javascript" src="/static/bootstrap-3.0.2/js/bootstrap.min.js">
  146. </script><script type="text/javascript" src="/static/dust-full-2.0.0.min.js">
  147. </script><script type="text/javascript" src="/static/dust-helpers-1.1.1.min.js">
  148. </script><script type="text/javascript" src="/static/dfs-dust.js">
  149. </script><script type="text/javascript" src="explorer.js">
  150. </script>
  151. </body>
  152. </html>