123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215 |
- {{!
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- }}
- <div id="hive-job-details">
- {{#if controller.loaded}}
- <!-- Top Bar -->
- <div class="top-bar">
- <a {{action "routeToJobs" target="controller"}} href="#">{{t menu.item.jobs}}</a> > {{view.content.name}}
- <a {{action "toggleShowQuery" target="view"}} href="#" id="toggle-query">{{view.toggleShowQueryText}}</a>
- <div class="pull-right">Job Type: <span class="label label-info">{{view.content.jobType}}</span></div>
- <div {{bindAttr class="view.showQuery::hidden"}}>
- <table id="job-more-details-table">
- <tr>
- <td>
- {{t jobs.hive.query}}
- </td>
- <td>
- {{view.content.queryText}}
- </td>
- </tr>
- <tr>
- <td>
- {{t jobs.hive.yarnApplication}}
- </td>
- <td>
- {{#if view.yarnApplicationIdLink}}
- <a {{bindAttr href="view.yarnApplicationIdLink"}} target="_blank">
- {{view.content.tezDag.yarnApplicationId}}
- </a>
- {{else}}
- {{view.content.tezDag.yarnApplicationId}}
- {{/if}}
- </td>
- </tr>
- <tr>
- <td>
- {{t jobs.hive.stages}}
- </td>
- <td>
- <ol>
- {{#each stage in view.content.stages}}
- <li>{{stage.id}}{{stage.description}}.</li>
- {{/each}}
- </ol>
- </td>
- </tr>
- </table>
- </div>
- </div>
- <!-- Sections -->
- <div class="row-fluid">
- <div class="span12 sections">
- <!-- Section LHS -->
- <div id="tez-dag-lhs" {{bindAttr class="view.isGraphMaximized:span12:span6 :sections-lhs"}}>
- <div id="tez-dag-section" class="box">
- <div id="tez-dag-section-top-bar">
- {{t jobs.hive.tez.dag.summary.metric}}
- <div class="btn-group display-inline-block">
- <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
- {{view.summaryMetricTypeDisplay}}
- <span class="caret"></span>
- </a>
- <ul class="dropdown-menu">
- <!-- dropdown menu links -->
- {{#each type in view.summaryMetricTypesDisplay}}
- <li>
- <a title="{{type}}" href="#" {{action "doSelectSummaryMetricType" type target="view"}}>{{type}}</a>
- </li>
- {{/each}}
- </ul>
- </div>
- <div id="tez-dag-section-top-bar-actions" class="pull-right">
- <div class="btn-group">
- <a id="tez-dag-zoom-in-button" {{bindAttr class="view.canGraphZoomIn::disabled :btn"}} {{action "doGraphZoomIn" target="view"}}>
- <i class="icon-zoom-in"></i>
- </a>
- <a id="tez-dag-zoom-out-button" {{bindAttr class="view.canGraphZoomOut::disabled :btn"}} {{action "doGraphZoomOut" target="view"}}>
- <i class="icon-zoom-out"></i>
- </a>
- {{#if view.isGraphMaximized}}
- <a id="tez-dag-resize-small-button" class="btn" {{action "doGraphMinimize" target="view"}}>
- <i class="icon-resize-small"></i>
- </a>
- {{else}}
- <a id="tez-dag-resize-full-button" class="btn" {{action "doGraphMaximize" target="view"}}>
- <i class="icon-resize-full"></i>
- </a>
- {{/if}}
- </div>
- </div>
- </div>
- <div id="tez-dag-section-body">
- {{view App.MainHiveJobDetailsTezDagView controllerBinding="controller" selectedVertexBinding="view.selectedVertex"
- summaryMetricTypeBinding="view.summaryMetricType" zoomScaleBinding="view.zoomScale"
- zoomScaleFromBinding="view.zoomScaleFrom" zoomScaleToBinding="view.zoomScaleTo"}}
- </div>
- </div>
- </div>
- <!-- Section RHS -->
- <div id="tez-vertices-rhs" {{bindAttr class="view.isGraphMaximized:hidden:span6 :sections-rhs"}}>
- <!-- Section RHS Vertices -->
- <div id="tez-vertices-table-section">
- <div id="tez-vertices-table-container" class="section">
- <table class="table table-hover table-bordered table-striped">
- {{#view App.MainHiveJobDetailsVerticesTableView contentBinding="view.sortedVertices" doSelectVertexBinding="view.doSelectVertex" selectedVertexBinding="view.selectedVertex"}}
- <thead>
- {{#view view.sortView contentBinding="view.content"}}
- {{view view.parentView.nameSort}}
- {{view view.parentView.tasksSort}}
- {{view view.parentView.inputSort}}
- {{view view.parentView.outputSort}}
- {{view view.parentView.durationSort}}
- {{/view}}
- </thead>
- <tbody>
- {{#each vertex in view.content}}
- <tr {{bindAttr class="vertex.isSelected:info"}}>
- <td>
- <a title="{{vertex.name}}" href="#" {{action "doSelectVertex" vertex target="view"}}>{{vertex.name}}</a>
- </td>
- <td>{{vertex.tasksNumber}}</td>
- <td>{{vertex.totalReadBytesDisplay}}</td>
- <td>{{vertex.totalWriteBytesDisplay}}</td>
- <td>{{vertex.durationDisplay}}</td>
- </tr>
- {{/each}}
- </tbody>
- {{/view}}
- </table>
- </div>
- </div>
- <!-- Section RHS Vertex -->
- {{#if view.selectedVertex}}
- <div id="section tez-vertex-details-section">
- <div class="box">
- <div class="box-header">
- <h4>{{view.selectedVertex.name}}</h4>
- </div>
- <div id="tez-vertex-details-section-body">
- <table class="table no-borders table-condensed">
- <tr>
- <td>{{t common.status}}</td>
- <td>{{view.selectedVertexIODisplay.status}}</td>
- <td></td>
- </tr>
- <tr>
- <td>{{t common.time.start}}</td>
- <td>{{view.selectedVertexIODisplay.started}}</td>
- <td></td>
- </tr>
- <tr>
- <td>{{t common.time.end}}</td>
- <td>{{view.selectedVertexIODisplay.ended}}</td>
- <td></td>
- </tr>
- <tr>
- <td>{{t jobs.hive.tez.tasks}}</td>
- <td>{{view.selectedVertex.tasksCount}}</td>
- <td></td>
- </tr>
- <tr>
- <td>{{t jobs.hive.tez.hdfs}}</td>
- <td>{{view.selectedVertexIODisplay.hdfs.read.ops}} / {{view.selectedVertexIODisplay.hdfs.read.bytes}}</td>
- <td>{{view.selectedVertexIODisplay.hdfs.write.ops}} / {{view.selectedVertexIODisplay.hdfs.write.bytes}}</td>
- </tr>
- <tr>
- <td>{{t jobs.hive.tez.localFiles}}</td>
- <td>{{view.selectedVertexIODisplay.file.read.ops}} / {{view.selectedVertexIODisplay.file.read.bytes}}</td>
- <td>{{view.selectedVertexIODisplay.file.write.ops}} / {{view.selectedVertexIODisplay.file.write.bytes}}</td>
- </tr>
- <tr>
- <td>{{t jobs.hive.tez.spilledRecords}}</td>
- <td>{{view.selectedVertex.spilledRecords}}</td>
- </tr>
- {{#if view.selectedVertexIODisplay.records.read}}
- <tr>
- <td>{{t jobs.hive.tez.records}}</td>
- <td>{{view.selectedVertexIODisplay.records.read}}</td>
- <td>{{view.selectedVertexIODisplay.records.write}}</td>
- </tr>
- {{/if}}
- </table>
- </div>
- </div>
- </div>
- {{/if}}
- </div>
- </div>
- </div>
- {{else}}
- <div class="alert alert-info">
- <h4>{{t app.loadingPlaceholder}}</h4>
- </div>
- {{/if}}
- </div>
|