yarn-app.hbs 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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 class="container-fluid">
  19. <!-- app table -->
  20. <div class="row">
  21. <div class="col-md-12 container-fluid">
  22. <div class="panel panel-default">
  23. <div class="panel-heading">
  24. Application Basic Information
  25. </div>
  26. {{app-table table-id="app-table" app=model.app}}
  27. </div>
  28. </div>
  29. </div>
  30. <!-- diag info and other infos -->
  31. <div class="row">
  32. <!-- diag info -->
  33. <div class="col-md-4 container-fluid">
  34. {{#if model.app.isFailed}}
  35. <div class="panel panel-danger">
  36. <div class="panel-heading">
  37. Diagnostics
  38. </div>
  39. <div class="panel-body">{{model.app.diagnostics}}</div>
  40. </div>
  41. {{else}}
  42. <div class="panel panel-default">
  43. <div class="panel-body">
  44. Diagnostics
  45. </div>
  46. <div class="panel-footer">{{model.app.diagnostics}}</div>
  47. </div>
  48. {{/if}}
  49. </div>
  50. <div class="col-md-5 container-fluid">
  51. <div class="panel panel-default">
  52. <div class="panel-heading">Scheduling Info</div>
  53. <table class="table">
  54. <tbody>
  55. <tr>
  56. <td>Allocated Resource</td>
  57. <td>{{model.app.allocatedResource}}</td>
  58. </tr>
  59. <tr>
  60. <td>Running Containers</td>
  61. <td>{{model.app.runningContainersNumber}}</td>
  62. </tr>
  63. <tr>
  64. <td>Preempted Resource</td>
  65. <td>{{model.app.preemptedResource}}</td>
  66. </tr>
  67. <tr>
  68. <td>Num Non-AM container preempted</td>
  69. <td>{{model.app.numAMContainerPreempted}}</td>
  70. </tr>
  71. <tr>
  72. <td>Num AM container preempted</td>
  73. <td>{{model.app.numAMContainerPreempted}}</td>
  74. </tr>
  75. <tr>
  76. <td>Aggregated Resource Usage</td>
  77. <td>{{model.app.aggregatedResourceUsage}}</td>
  78. </tr>
  79. </tbody>
  80. </table>
  81. </div>
  82. </div>
  83. <!-- other info -->
  84. <div class="col-md-3 container-fluid">
  85. <div class="panel panel-default">
  86. <div class="panel-heading">Other Info</div>
  87. <table class="table">
  88. <tbody>
  89. <tr>
  90. <td>AM Container Log</td>
  91. <td><a href={{model.app.amContainerLogs}}>Link</a></td>
  92. </tr>
  93. <tr>
  94. <td>AM Host Http Addr</td>
  95. <td><a href={{model.app.amHostHttpAddress}}>Link</a></td>
  96. </tr>
  97. <tr>
  98. <td>Log Aggregation Status</td>
  99. <td>{{model.app.logAggregationStatus}}</td>
  100. </tr>
  101. <tr>
  102. <td>Is Unmanaged AM</td>
  103. <td>{{model.app.unmanagedApplication}}</td>
  104. </tr>
  105. <tr>
  106. <td>AM Node Label Expression</td>
  107. <td>{{model.app.amNodeLabelExpression}}</td>
  108. </tr>
  109. </tbody>
  110. </table>
  111. </div>
  112. </div>
  113. </div>
  114. <!--
  115. <div class="row">
  116. <div class="col-md-12 container-fluid">
  117. <div class="panel panel-default">
  118. <div class="panel-heading">
  119. Application Attempts
  120. </div>
  121. <table id="app-attempt-table" class="table table-striped table-bordered" cellspacing="0" width="100%" height="100%">
  122. <thead>
  123. <tr>
  124. <th>Start Time</th>
  125. <th>Master ContainerId</th>
  126. <th>Node Http Address</th>
  127. <th>Node Id</th>
  128. <th>Logs Link</th>
  129. </tr>
  130. </thead>
  131. <tbody>
  132. {{#each model.attempts as |attempt|}}
  133. <tr>
  134. <td>{{attempt.startTime}}</td>
  135. <td>{{attempt.containerId}}</td>
  136. <td><a href={{attempt.nodeHttpAddress}}>{{attempt.nodeHttpAddress}}</a></td>
  137. <td>{{attempt.nodeId}}</td>
  138. <td><a href={{attempt.logsLink}}>link</a></td>
  139. </tr>
  140. {{/each}}
  141. </tbody>
  142. </table>
  143. </div>
  144. </div>
  145. </div>
  146. -->
  147. <!-- timeline view of children -->
  148. <div class="row">
  149. {{timeline-view parent-id="attempt-timeline-div" my-id="timeline-view" height="100%" rmModel=model.attempts label="shortAppAttemptId" attemptModel=true}}
  150. </div>
  151. </div>
  152. <!--
  153. {{simple-table table-id="app-attempt-table" paging=false bFilter=false}}
  154. -->
  155. {{outlet}}