hive_job_details.hbs 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. {{!
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. }}
  18. <div id="hive-job-details">
  19. {{#if controller.loaded}}
  20. <!-- Top Bar -->
  21. <div class="top-bar">
  22. <a {{action "routeToJobs" target="controller"}} href="#">{{t menu.item.jobs}}</a> > {{view.content.name}}
  23. <a {{action "toggleShowQuery" target="view"}} href="#" id="toggle-query">{{view.toggleShowQueryText}}</a>
  24. <div class="pull-right">Job Type: <span class="label label-info">{{view.content.jobType}}</span></div>
  25. <div {{bindAttr class="view.showQuery::hidden"}}>
  26. <table id="job-more-details-table">
  27. <tr>
  28. <td>
  29. {{t jobs.hive.query}}
  30. </td>
  31. <td>
  32. {{view.content.queryText}}
  33. </td>
  34. </tr>
  35. <tr>
  36. <td>
  37. {{t jobs.hive.yarnApplication}}
  38. </td>
  39. <td>
  40. {{#if view.yarnApplicationIdLink}}
  41. <a {{bindAttr href="view.yarnApplicationIdLink"}} target="_blank">
  42. {{view.content.tezDag.yarnApplicationId}}
  43. </a>
  44. {{else}}
  45. {{view.content.tezDag.yarnApplicationId}}
  46. {{/if}}
  47. </td>
  48. </tr>
  49. <tr>
  50. <td>
  51. {{t jobs.hive.stages}}
  52. </td>
  53. <td>
  54. <ol>
  55. {{#each stage in view.content.stages}}
  56. <li>{{stage.id}}{{stage.description}}.</li>
  57. {{/each}}
  58. </ol>
  59. </td>
  60. </tr>
  61. </table>
  62. </div>
  63. </div>
  64. <!-- Sections -->
  65. <div class="row-fluid">
  66. <div class="span12 sections">
  67. <!-- Section LHS -->
  68. <div id="tez-dag-lhs" {{bindAttr class="view.isGraphMaximized:span12:span6 :sections-lhs"}}>
  69. <div id="tez-dag-section" class="box">
  70. <div id="tez-dag-section-top-bar"> &nbsp;
  71. {{t jobs.hive.tez.dag.summary.metric}}
  72. <div class="btn-group display-inline-block">
  73. <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
  74. {{view.summaryMetricTypeDisplay}}
  75. <span class="caret"></span>
  76. </a>
  77. <ul class="dropdown-menu">
  78. <!-- dropdown menu links -->
  79. {{#each type in view.summaryMetricTypesDisplay}}
  80. <li>
  81. <a title="{{type}}" href="#" {{action "doSelectSummaryMetricType" type target="view"}}>{{type}}</a>
  82. </li>
  83. {{/each}}
  84. </ul>
  85. </div>
  86. <div id="tez-dag-section-top-bar-actions" class="pull-right">
  87. <div class="btn-group">
  88. <a id="tez-dag-zoom-in-button" {{bindAttr class="view.canGraphZoomIn::disabled :btn"}} {{action "doGraphZoomIn" target="view"}}>
  89. <i class="icon-zoom-in"></i>
  90. </a>
  91. <a id="tez-dag-zoom-out-button" {{bindAttr class="view.canGraphZoomOut::disabled :btn"}} {{action "doGraphZoomOut" target="view"}}>
  92. <i class="icon-zoom-out"></i>
  93. </a>
  94. {{#if view.isGraphMaximized}}
  95. <a id="tez-dag-resize-small-button" class="btn" {{action "doGraphMinimize" target="view"}}>
  96. <i class="icon-resize-small"></i>
  97. </a>
  98. {{else}}
  99. <a id="tez-dag-resize-full-button" class="btn" {{action "doGraphMaximize" target="view"}}>
  100. <i class="icon-resize-full"></i>
  101. </a>
  102. {{/if}}
  103. </div>
  104. </div>
  105. </div>
  106. <div id="tez-dag-section-body">
  107. {{view App.MainHiveJobDetailsTezDagView controllerBinding="controller" selectedVertexBinding="view.selectedVertex"
  108. summaryMetricTypeBinding="view.summaryMetricType" zoomScaleBinding="view.zoomScale"
  109. zoomScaleFromBinding="view.zoomScaleFrom" zoomScaleToBinding="view.zoomScaleTo"}}
  110. </div>
  111. </div>
  112. </div>
  113. <!-- Section RHS -->
  114. <div id="tez-vertices-rhs" {{bindAttr class="view.isGraphMaximized:hidden:span6 :sections-rhs"}}>
  115. <!-- Section RHS Vertices -->
  116. <div id="tez-vertices-table-section">
  117. <div id="tez-vertices-table-container" class="section">
  118. <table class="table table-hover table-bordered table-striped">
  119. {{#view App.MainHiveJobDetailsVerticesTableView contentBinding="view.sortedVertices" doSelectVertexBinding="view.doSelectVertex" selectedVertexBinding="view.selectedVertex"}}
  120. <thead>
  121. {{#view view.sortView contentBinding="view.content"}}
  122. {{view view.parentView.nameSort}}
  123. {{view view.parentView.tasksSort}}
  124. {{view view.parentView.inputSort}}
  125. {{view view.parentView.outputSort}}
  126. {{view view.parentView.durationSort}}
  127. {{/view}}
  128. </thead>
  129. <tbody>
  130. {{#each vertex in view.content}}
  131. <tr {{bindAttr class="vertex.isSelected:info"}}>
  132. <td>
  133. <a title="{{vertex.name}}" href="#" {{action "doSelectVertex" vertex target="view"}}>{{vertex.name}}</a>
  134. </td>
  135. <td>{{vertex.tasksNumber}}</td>
  136. <td>{{vertex.totalReadBytesDisplay}}</td>
  137. <td>{{vertex.totalWriteBytesDisplay}}</td>
  138. <td>{{vertex.durationDisplay}}</td>
  139. </tr>
  140. {{/each}}
  141. </tbody>
  142. {{/view}}
  143. </table>
  144. </div>
  145. </div>
  146. <!-- Section RHS Vertex -->
  147. {{#if view.selectedVertex}}
  148. <div id="section tez-vertex-details-section">
  149. <div class="box">
  150. <div class="box-header">
  151. <h4>{{view.selectedVertex.name}}</h4>
  152. </div>
  153. <div id="tez-vertex-details-section-body">
  154. <table class="table no-borders table-condensed">
  155. <tr>
  156. <td>{{t common.status}}</td>
  157. <td>{{view.selectedVertexIODisplay.status}}</td>
  158. <td></td>
  159. </tr>
  160. <tr>
  161. <td>{{t common.time.start}}</td>
  162. <td>{{view.selectedVertexIODisplay.started}}</td>
  163. <td></td>
  164. </tr>
  165. <tr>
  166. <td>{{t common.time.end}}</td>
  167. <td>{{view.selectedVertexIODisplay.ended}}</td>
  168. <td></td>
  169. </tr>
  170. <tr>
  171. <td>{{t jobs.hive.tez.tasks}}</td>
  172. <td>{{view.selectedVertex.tasksCount}}</td>
  173. <td></td>
  174. </tr>
  175. <tr>
  176. <td>{{t jobs.hive.tez.hdfs}}</td>
  177. <td>{{view.selectedVertexIODisplay.hdfs.read.ops}} / {{view.selectedVertexIODisplay.hdfs.read.bytes}}</td>
  178. <td>{{view.selectedVertexIODisplay.hdfs.write.ops}} / {{view.selectedVertexIODisplay.hdfs.write.bytes}}</td>
  179. </tr>
  180. <tr>
  181. <td>{{t jobs.hive.tez.localFiles}}</td>
  182. <td>{{view.selectedVertexIODisplay.file.read.ops}} / {{view.selectedVertexIODisplay.file.read.bytes}}</td>
  183. <td>{{view.selectedVertexIODisplay.file.write.ops}} / {{view.selectedVertexIODisplay.file.write.bytes}}</td>
  184. </tr>
  185. <tr>
  186. <td>{{t jobs.hive.tez.spilledRecords}}</td>
  187. <td>{{view.selectedVertex.spilledRecords}}</td>
  188. </tr>
  189. {{#if view.selectedVertexIODisplay.records.read}}
  190. <tr>
  191. <td>{{t jobs.hive.tez.records}}</td>
  192. <td>{{view.selectedVertexIODisplay.records.read}}</td>
  193. <td>{{view.selectedVertexIODisplay.records.write}}</td>
  194. </tr>
  195. {{/if}}
  196. </table>
  197. </div>
  198. </div>
  199. </div>
  200. {{/if}}
  201. </div>
  202. </div>
  203. </div>
  204. {{else}}
  205. <div class="alert alert-info">
  206. <h4>{{t app.loadingPlaceholder}}</h4>
  207. </div>
  208. {{/if}}
  209. </div>