hive_job_details.hbs 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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. <!-- Top Bar -->
  20. <div class="top-bar">
  21. <a {{action "routeToJobs" target="controller"}} href="#">{{t menu.item.jobs}}</a> > {{view.content.name}}
  22. <div class="pull-right">Job Type: <span class="label label-info">{{view.content.jobType}}</span></div>
  23. </div>
  24. {{#if controller.loaded}}
  25. <!-- Sections -->
  26. <div class="row-fluid">
  27. <div class="span12 sections">
  28. <!-- Section LHS -->
  29. <div id="tez-dag-lhs" class="span6 sections-lhs">
  30. <div id="tez-dag-section" class="box">
  31. <div id="tez-dag-section-top-bar"> &nbsp;
  32. {{t jobs.hive.tez.dag.summary.metric}}
  33. <div class="btn-group display-inline-block">
  34. <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
  35. {{view.summaryMetricTypeDisplay}}
  36. <span class="caret"></span>
  37. </a>
  38. <ul class="dropdown-menu">
  39. <!-- dropdown menu links -->
  40. {{#each type in view.summaryMetricTypesDisplay}}
  41. <li>
  42. <a title="{{type}}" href="#" {{action "doSelectSummaryMetricType" type target="view"}}>{{type}}</a>
  43. </li>
  44. {{/each}}
  45. </ul>
  46. </div>
  47. <div id="tez-dag-section-top-bar-actions" class="pull-right">
  48. </div>
  49. </div>
  50. <div id="tez-dag-section-body">
  51. {{view App.MainHiveJobDetailsTezDagView controllerBinding="controller" selectedVertexBinding="view.selectedVertex" summaryMetricTypeBinding="view.summaryMetricType"}}
  52. </div>
  53. </div>
  54. </div>
  55. <!-- Section RHS -->
  56. <div id="tez-vertices-rhs" class="span6 sections-rhs">
  57. <!-- Section RHS Vertices -->
  58. <div id="tez-vertices-table-section">
  59. <div id="tez-vertices-table-container" class="section">
  60. <table class="table table-hover table-bordered table-striped">
  61. <thead>
  62. <tr>
  63. <th>{{t common.name}}</th>
  64. <th>{{t common.tasks}}</th>
  65. <th>{{t apps.item.dag.input}}</th>
  66. <th>{{t apps.item.dag.output}}</th>
  67. <th>{{t apps.item.dag.duration}}</th>
  68. </tr>
  69. </thead>
  70. <tbody>
  71. {{#each vertex in view.sortedVertices}}
  72. <tr {{bindAttr class="vertex.isSelected:info"}}>
  73. <td>
  74. <a title="{{vertex.name}}" href="#" {{action "doSelectVertex" vertex target="view"}}>{{vertex.name}}</a>
  75. </td>
  76. <td>{{vertex.tasksCount}}</td>
  77. <td>{{vertex.totalReadBytesDisplay}}</td>
  78. <td>{{vertex.totalWriteBytesDisplay}}</td>
  79. <td>{{vertex.durationDisplay}}</td>
  80. </tr>
  81. {{/each}}
  82. </tbody>
  83. </table>
  84. </div>
  85. </div>
  86. <!-- Section RHS Vertex -->
  87. {{#if view.selectedVertex}}
  88. <div id="section tez-vertex-details-section">
  89. <div class="box">
  90. <div class="box-header">
  91. <h4>{{view.selectedVertex.name}}</h4>
  92. </div>
  93. <div id="tez-vertex-details-section-body">
  94. <table class="table">
  95. <tr>
  96. <td>{{t jobs.hive.tez.tasks}}</td>
  97. <td>{{view.selectedVertex.tasksCount}}</td>
  98. <td></td>
  99. </tr>
  100. <tr>
  101. <td>{{t jobs.hive.tez.hdfs}}</td>
  102. <td>{{view.selectedVertexIODisplay.hdfs.read.ops}} / {{view.selectedVertexIODisplay.hdfs.read.bytes}}</td>
  103. <td>{{view.selectedVertexIODisplay.hdfs.write.ops}} / {{view.selectedVertexIODisplay.hdfs.write.bytes}}</td>
  104. </tr>
  105. <tr>
  106. <td>{{t jobs.hive.tez.localFiles}}</td>
  107. <td>{{view.selectedVertexIODisplay.file.read.ops}} / {{view.selectedVertexIODisplay.file.read.bytes}}</td>
  108. <td>{{view.selectedVertexIODisplay.file.write.ops}} / {{view.selectedVertexIODisplay.file.write.bytes}}</td>
  109. </tr>
  110. <tr>
  111. <td>{{t jobs.hive.tez.records}}</td>
  112. <td>{{view.selectedVertexIODisplay.records.read}}</td>
  113. <td>{{view.selectedVertexIODisplay.records.write}}</td>
  114. </tr>
  115. <td>{{t jobs.hive.tez.operatorPlan}}</td>
  116. <td></td>
  117. <td></td>
  118. </tr>
  119. </table>
  120. {{view Ember.TextArea valueBinding="view.selectedVertex.operationPlan" rows="15"}}
  121. </div>
  122. </div>
  123. {{/if}}
  124. </div>
  125. </div>
  126. </div>
  127. {{else}}
  128. <div class="alert alert-info">
  129. <h4>{{t app.loadingPlaceholder}}</h4>
  130. </div>
  131. {{/if}}
  132. </div>