hive_job_details.hbs 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. <!-- Sections -->
  25. <div class="row-fluid">
  26. <div class="span12 sections">
  27. <!-- Section LHS -->
  28. <div class="span6 sections-lhs">
  29. </div>
  30. <!-- Section RHS -->
  31. <div class="span6 sections-rhs">
  32. <!-- Section RHS Vertices -->
  33. <div id="tez-vertices-table-section">
  34. <div id="tez-vertices-table-container" class="section">
  35. <table class="table table-hover table-bordered table-striped">
  36. <thead>
  37. <tr>
  38. <th>{{t common.name}}</th>
  39. <th>{{t common.tasks}}</th>
  40. <th>{{t apps.item.dag.input}}</th>
  41. <th>{{t apps.item.dag.output}}</th>
  42. <th>{{t apps.item.dag.duration}}</th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. {{#each vertex in view.content.tezDag.vertices}}
  47. <tr {{bindAttr class="vertex.isSelected:info"}}>
  48. <td>
  49. <a title="{{vertex.name}}" href="#" {{action "doSelectVertex" vertex target="view"}}>{{vertex.name}}</a>
  50. </td>
  51. <td>{{vertex.tasksCount}}</td>
  52. <td>{{vertex.totalReadBytesDisplay}}</td>
  53. <td>{{vertex.totalWriteBytesDisplay}}</td>
  54. <td>{{vertex.durationDisplay}}</td>
  55. </tr>
  56. {{/each}}
  57. </tbody>
  58. </table>
  59. </div>
  60. </div>
  61. <!-- Section RHS Vertex -->
  62. {{#if view.selectedVertex}}
  63. <div id="section tez-vertex-details-section">
  64. <div class="box">
  65. <div class="box-header">
  66. <h4>{{view.selectedVertex.name}}</h4>
  67. </div>
  68. <div id="tez-vertex-details-section-body">
  69. <table class="table">
  70. <tr>
  71. <td>{{t jobs.hive.tez.tasks}}</td>
  72. <td>{{view.selectedVertex.tasksCount}}</td>
  73. <td></td>
  74. </tr>
  75. <tr>
  76. <td>{{t jobs.hive.tez.hdfs}}</td>
  77. <td>{{view.selectedVertexIODisplay.hdfs.read.ops}} / {{view.selectedVertexIODisplay.hdfs.read.bytes}}</td>
  78. <td>{{view.selectedVertexIODisplay.hdfs.write.ops}} / {{view.selectedVertexIODisplay.hdfs.write.bytes}}</td>
  79. </tr>
  80. <tr>
  81. <td>{{t jobs.hive.tez.localFiles}}</td>
  82. <td>{{view.selectedVertexIODisplay.file.read.ops}} / {{view.selectedVertexIODisplay.file.read.bytes}}</td>
  83. <td>{{view.selectedVertexIODisplay.file.write.ops}} / {{view.selectedVertexIODisplay.file.write.bytes}}</td>
  84. </tr>
  85. <tr>
  86. <td>{{t jobs.hive.tez.records}}</td>
  87. <td>{{view.selectedVertexIODisplay.records.read}}</td>
  88. <td>{{view.selectedVertexIODisplay.records.write}}</td>
  89. </tr>
  90. <td>{{t jobs.hive.tez.operatorPlan}}</td>
  91. <td></td>
  92. <td></td>
  93. </tr>
  94. </table>
  95. {{view Ember.TextArea valueBinding="view.selectedVertex.operationPlan" rows="15"}}
  96. </div>
  97. </div>
  98. {{/if}}
  99. </div>
  100. </div>
  101. </div>
  102. </div>