hive_job_details.hbs 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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. <div class="query-section"><span class="query-title">{{t jobs.hive.query}}</span> {{view.content.queryText}}</div>
  27. <div class="query-section">
  28. <span class="query-title">{{t jobs.hive.stages}}</span>
  29. <ol>
  30. {{#each stage in view.content.stages}}
  31. <li>{{stage.id}}{{stage.description}}.</li>
  32. {{/each}}
  33. </ol>
  34. </div>
  35. </div>
  36. </div>
  37. <!-- Sections -->
  38. <div class="row-fluid">
  39. <div class="span12 sections">
  40. <!-- Section LHS -->
  41. <div id="tez-dag-lhs" {{bindAttr class="view.isGraphMaximized:span12:span6 :sections-lhs"}}>
  42. <div id="tez-dag-section" class="box">
  43. <div id="tez-dag-section-top-bar"> &nbsp;
  44. {{t jobs.hive.tez.dag.summary.metric}}
  45. <div class="btn-group display-inline-block">
  46. <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
  47. {{view.summaryMetricTypeDisplay}}
  48. <span class="caret"></span>
  49. </a>
  50. <ul class="dropdown-menu">
  51. <!-- dropdown menu links -->
  52. {{#each type in view.summaryMetricTypesDisplay}}
  53. <li>
  54. <a title="{{type}}" href="#" {{action "doSelectSummaryMetricType" type target="view"}}>{{type}}</a>
  55. </li>
  56. {{/each}}
  57. </ul>
  58. </div>
  59. <div id="tez-dag-section-top-bar-actions" class="pull-right">
  60. <div class="btn-group">
  61. <a id="tez-dag-zoom-in-button" {{bindAttr class="view.canGraphZoomIn::disabled :btn"}} {{action "doGraphZoomIn" target="view"}}>
  62. <i class="icon-zoom-in"></i>
  63. </a>
  64. <a id="tez-dag-zoom-out-button" {{bindAttr class="view.canGraphZoomOut::disabled :btn"}} {{action "doGraphZoomOut" target="view"}}>
  65. <i class="icon-zoom-out"></i>
  66. </a>
  67. {{#if view.isGraphMaximized}}
  68. <a id="tez-dag-resize-small-button" class="btn" {{action "doGraphMinimize" target="view"}}>
  69. <i class="icon-resize-small"></i>
  70. </a>
  71. {{else}}
  72. <a id="tez-dag-resize-full-button" class="btn" {{action "doGraphMaximize" target="view"}}>
  73. <i class="icon-resize-full"></i>
  74. </a>
  75. {{/if}}
  76. </div>
  77. </div>
  78. </div>
  79. <div id="tez-dag-section-body">
  80. {{view App.MainHiveJobDetailsTezDagView controllerBinding="controller" selectedVertexBinding="view.selectedVertex"
  81. summaryMetricTypeBinding="view.summaryMetricType" zoomScaleBinding="view.zoomScale"
  82. zoomScaleFromBinding="view.zoomScaleFrom" zoomScaleToBinding="view.zoomScaleTo"}}
  83. </div>
  84. </div>
  85. </div>
  86. <!-- Section RHS -->
  87. <div id="tez-vertices-rhs" {{bindAttr class="view.isGraphMaximized:hidden:span6 :sections-rhs"}}>
  88. <!-- Section RHS Vertices -->
  89. <div id="tez-vertices-table-section">
  90. <div id="tez-vertices-table-container" class="section">
  91. <table class="table table-hover table-bordered table-striped">
  92. {{#view App.MainHiveJobDetailsVerticesTableView contentBinding="view.sortedVertices" doSelectVertexBinding="view.doSelectVertex" selectedVertexBinding="view.selectedVertex"}}
  93. <thead>
  94. {{#view view.sortView contentBinding="view.content"}}
  95. {{view view.parentView.nameSort}}
  96. {{view view.parentView.tasksSort}}
  97. {{view view.parentView.inputSort}}
  98. {{view view.parentView.outputSort}}
  99. {{view view.parentView.durationSort}}
  100. {{/view}}
  101. </thead>
  102. <tbody>
  103. {{#each vertex in view.content}}
  104. <tr {{bindAttr class="vertex.isSelected:info"}}>
  105. <td>
  106. <a title="{{vertex.name}}" href="#" {{action "doSelectVertex" vertex target="view"}}>{{vertex.name}}</a>
  107. </td>
  108. <td>{{vertex.tasksNumber}}</td>
  109. <td>{{vertex.totalReadBytesDisplay}}</td>
  110. <td>{{vertex.totalWriteBytesDisplay}}</td>
  111. <td>{{vertex.durationDisplay}}</td>
  112. </tr>
  113. {{/each}}
  114. </tbody>
  115. {{/view}}
  116. </table>
  117. </div>
  118. </div>
  119. <!-- Section RHS Vertex -->
  120. {{#if view.selectedVertex}}
  121. <div id="section tez-vertex-details-section">
  122. <div class="box">
  123. <div class="box-header">
  124. <h4>{{view.selectedVertex.name}}</h4>
  125. </div>
  126. <div id="tez-vertex-details-section-body">
  127. <table class="table no-borders table-condensed">
  128. <tr>
  129. <td>{{t common.status}}</td>
  130. <td>{{view.selectedVertexIODisplay.status}}</td>
  131. <td></td>
  132. </tr>
  133. <tr>
  134. <td>{{t common.time.start}}</td>
  135. <td>{{view.selectedVertexIODisplay.started}}</td>
  136. <td></td>
  137. </tr>
  138. <tr>
  139. <td>{{t common.time.end}}</td>
  140. <td>{{view.selectedVertexIODisplay.ended}}</td>
  141. <td></td>
  142. </tr>
  143. <tr>
  144. <td>{{t jobs.hive.tez.tasks}}</td>
  145. <td>{{view.selectedVertex.tasksCount}}</td>
  146. <td></td>
  147. </tr>
  148. <tr>
  149. <td>{{t jobs.hive.tez.hdfs}}</td>
  150. <td>{{view.selectedVertexIODisplay.hdfs.read.ops}} / {{view.selectedVertexIODisplay.hdfs.read.bytes}}</td>
  151. <td>{{view.selectedVertexIODisplay.hdfs.write.ops}} / {{view.selectedVertexIODisplay.hdfs.write.bytes}}</td>
  152. </tr>
  153. <tr>
  154. <td>{{t jobs.hive.tez.localFiles}}</td>
  155. <td>{{view.selectedVertexIODisplay.file.read.ops}} / {{view.selectedVertexIODisplay.file.read.bytes}}</td>
  156. <td>{{view.selectedVertexIODisplay.file.write.ops}} / {{view.selectedVertexIODisplay.file.write.bytes}}</td>
  157. </tr>
  158. <tr>
  159. <td>{{t jobs.hive.tez.spilledRecords}}</td>
  160. <td>{{view.selectedVertex.spilledRecords}}</td>
  161. </tr>
  162. {{#if view.selectedVertexIODisplay.records.read}}
  163. <tr>
  164. <td>{{t jobs.hive.tez.records}}</td>
  165. <td>{{view.selectedVertexIODisplay.records.read}}</td>
  166. <td>{{view.selectedVertexIODisplay.records.write}}</td>
  167. </tr>
  168. {{/if}}
  169. <tr>
  170. <td>{{t jobs.hive.tez.operatorPlan}}</td>
  171. <td></td>
  172. <td></td>
  173. </tr>
  174. </table>
  175. {{view Ember.TextArea valueBinding="view.selectedVertex.operationPlan" rows="15" id="tez-vertex-operator-plan-textarea"}}
  176. </div>
  177. </div>
  178. </div>
  179. {{/if}}
  180. </div>
  181. </div>
  182. </div>
  183. {{else}}
  184. <div class="alert alert-info">
  185. <h4>{{t app.loadingPlaceholder}}</h4>
  186. </div>
  187. {{/if}}
  188. </div>