hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asur...@apache.org
Subject [06/14] hadoop git commit: YARN-7462. Render outstanding resource requests on application page of new YARN UI. Contributed by Vasudevan Skm.
Date Wed, 15 Nov 2017 19:49:37 GMT
YARN-7462. Render outstanding resource requests on application page of new YARN UI. Contributed
by Vasudevan Skm.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/c4c57b80
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/c4c57b80
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/c4c57b80

Branch: refs/heads/YARN-6592
Commit: c4c57b80e1e43391417e958f455e25fd7ff67d07
Parents: 18621af
Author: Sunil G <sunilg@apache.org>
Authored: Wed Nov 15 12:01:29 2017 +0530
Committer: Sunil G <sunilg@apache.org>
Committed: Wed Nov 15 12:01:29 2017 +0530

----------------------------------------------------------------------
 .gitignore                                      |  4 +-
 .../src/main/webapp/app/models/yarn-app.js      |  1 +
 .../src/main/webapp/app/serializers/yarn-app.js |  1 +
 .../main/webapp/app/templates/yarn-app/info.hbs | 42 ++++++++++++++++++++
 4 files changed, 45 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/c4c57b80/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index 817556f..70c1f23 100644
--- a/.gitignore
+++ b/.gitignore
@@ -44,6 +44,4 @@ hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/dist
 hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/tmp
 yarnregistry.pdf
 patchprocess/
-
-
-.history/
\ No newline at end of file
+.history/

http://git-wip-us.apache.org/repos/asf/hadoop/blob/c4c57b80/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/yarn-app.js
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/yarn-app.js
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/yarn-app.js
index 47814e4..853e2ee 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/yarn-app.js
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/yarn-app.js
@@ -52,6 +52,7 @@ export default DS.Model.extend({
   currentAppAttemptId: DS.attr('string'),
   remainingTimeoutInSeconds: DS.attr('number'),
   applicationExpiryTime: DS.attr('string'),
+  resourceRequests: DS.attr('array'),
 
   isFailed: function() {
     return this.get('finalStatus') === "FAILED";

http://git-wip-us.apache.org/repos/asf/hadoop/blob/c4c57b80/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/serializers/yarn-app.js
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/serializers/yarn-app.js
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/serializers/yarn-app.js
index 1462f5a..efdb1ba 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/serializers/yarn-app.js
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/serializers/yarn-app.js
@@ -58,6 +58,7 @@ export default DS.JSONAPISerializer.extend({
           allocatedMB: payload.allocatedMB,
           allocatedVCores: payload.allocatedVCores,
           runningContainers: payload.runningContainers,
+          resourceRequests: payload.resourceRequests,
           memorySeconds: payload.memorySeconds,
           vcoreSeconds: payload.vcoreSeconds,
           preemptedResourceMB: payload.preemptedResourceMB,

http://git-wip-us.apache.org/repos/asf/hadoop/blob/c4c57b80/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/yarn-app/info.hbs
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/yarn-app/info.hbs
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/yarn-app/info.hbs
index 534869e..6b06961 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/yarn-app/info.hbs
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/yarn-app/info.hbs
@@ -132,6 +132,48 @@
   {{/if}}
 </div>
 
+{{#unless model.serviceName}}
+  <div class="row">
+    <div class="col-md-12 container-fluid">
+      <div class="panel panel-default">
+        <div class="panel-heading">Outstanding Resource Requests</div>
+        <table class="display table table-striped table-bordered"
+              cellspacing="0" width="100%">
+          <thead>
+          <tr>
+            <th>Scheduler Key</th>
+            <th>Resource Name</th>
+            <th>Capability</th>
+            <th># Containers</th>
+            <th>Relax Locality</th>
+            <th>Node Label Expression</th>
+          </tr>
+          </thead>
+          <tbody>
+          {{#each model.app.resourceRequests as |request|}}
+            <tr>
+              <td>{{request.priority}}</td>
+              <td>{{request.resourceName}}</td>
+              <td>&lt;Memory:{{request.capability.memory}};vCores:{{request.capability.virtualCores}}&gt;</td>
+              <td>{{request.numContainers}}</td>
+              <td>{{request.relaxLocality}}</td>
+              <td>
+                {{#if request.nodeLabelExpression}}
+                  {{request.nodeLabelExpression}}
+                {{else}}
+                  N/A
+                {{/if}}
+              </td>
+            </tr>
+          {{else}}
+            <div class="panel-body">No data available!</div>
+          {{/each}}
+          </tbody>
+        </table>
+      </div>
+    </div>
+  </div>
+{{/unless}}
 <div class="row">
   <div class="col-md-12 container-fluid">
     <div class="panel panel-default">


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message