hive_job_details.hbs 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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" class="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>
  61. </div>
  62. <div id="tez-dag-section-body">
  63. {{view App.MainHiveJobDetailsTezDagView controllerBinding="controller" selectedVertexBinding="view.selectedVertex" summaryMetricTypeBinding="view.summaryMetricType"}}
  64. </div>
  65. </div>
  66. </div>
  67. <!-- Section RHS -->
  68. <div id="tez-vertices-rhs" class="span6 sections-rhs">
  69. <!-- Section RHS Vertices -->
  70. <div id="tez-vertices-table-section">
  71. <div id="tez-vertices-table-container" class="section">
  72. <table class="table table-hover table-bordered table-striped">
  73. <thead>
  74. <tr>
  75. <th>{{t common.name}}</th>
  76. <th>{{t common.tasks}}</th>
  77. <th>{{t apps.item.dag.input}}</th>
  78. <th>{{t apps.item.dag.output}}</th>
  79. <th>{{t apps.item.dag.duration}}</th>
  80. </tr>
  81. </thead>
  82. <tbody>
  83. {{#each vertex in view.sortedVertices}}
  84. <tr {{bindAttr class="vertex.isSelected:info"}}>
  85. <td>
  86. <a title="{{vertex.name}}" href="#" {{action "doSelectVertex" vertex target="view"}}>{{vertex.name}}</a>
  87. </td>
  88. <td>{{vertex.tasksCount}}</td>
  89. <td>{{vertex.totalReadBytesDisplay}}</td>
  90. <td>{{vertex.totalWriteBytesDisplay}}</td>
  91. <td>{{vertex.durationDisplay}}</td>
  92. </tr>
  93. {{/each}}
  94. </tbody>
  95. </table>
  96. </div>
  97. </div>
  98. <!-- Section RHS Vertex -->
  99. {{#if view.selectedVertex}}
  100. <div id="section tez-vertex-details-section">
  101. <div class="box">
  102. <div class="box-header">
  103. <h4>{{view.selectedVertex.name}}</h4>
  104. </div>
  105. <div id="tez-vertex-details-section-body">
  106. <table class="table">
  107. <tr>
  108. <td>{{t common.time.start}}</td>
  109. <td>{{view.selectedVertexIODisplay.started}}</td>
  110. <td></td>
  111. </tr>
  112. <tr>
  113. <td>{{t common.time.end}}</td>
  114. <td>{{view.selectedVertexIODisplay.ended}}</td>
  115. <td></td>
  116. </tr>
  117. <tr>
  118. <td>{{t jobs.hive.tez.tasks}}</td>
  119. <td>{{view.selectedVertex.tasksCount}}</td>
  120. <td></td>
  121. </tr>
  122. <tr>
  123. <td>{{t jobs.hive.tez.hdfs}}</td>
  124. <td>{{view.selectedVertexIODisplay.hdfs.read.ops}} / {{view.selectedVertexIODisplay.hdfs.read.bytes}}</td>
  125. <td>{{view.selectedVertexIODisplay.hdfs.write.ops}} / {{view.selectedVertexIODisplay.hdfs.write.bytes}}</td>
  126. </tr>
  127. <tr>
  128. <td>{{t jobs.hive.tez.localFiles}}</td>
  129. <td>{{view.selectedVertexIODisplay.file.read.ops}} / {{view.selectedVertexIODisplay.file.read.bytes}}</td>
  130. <td>{{view.selectedVertexIODisplay.file.write.ops}} / {{view.selectedVertexIODisplay.file.write.bytes}}</td>
  131. </tr>
  132. <tr>
  133. <td>{{t jobs.hive.tez.records}}</td>
  134. <td>{{view.selectedVertexIODisplay.records.read}}</td>
  135. <td>{{view.selectedVertexIODisplay.records.write}}</td>
  136. </tr>
  137. <td>{{t jobs.hive.tez.operatorPlan}}</td>
  138. <td></td>
  139. <td></td>
  140. </tr>
  141. </table>
  142. {{view Ember.TextArea valueBinding="view.selectedVertex.operationPlan" rows="15"}}
  143. </div>
  144. </div>
  145. </div>
  146. {{/if}}
  147. </div>
  148. </div>
  149. </div>
  150. {{else}}
  151. <div class="alert alert-info">
  152. <h4>{{t app.loadingPlaceholder}}</h4>
  153. </div>
  154. {{/if}}
  155. </div>