tez-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hit...@apache.org
Subject tez git commit: TEZ-2178. YARN-3122 breaks tez compilation with hadoop 2.7.0. (Rajesh Balamohan via hitesh)
Date Thu, 05 Mar 2015 23:38:15 GMT
Repository: tez
Updated Branches:
  refs/heads/master d8024195d -> 059b91b62


TEZ-2178. YARN-3122 breaks tez compilation with hadoop 2.7.0. (Rajesh Balamohan via hitesh)


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

Branch: refs/heads/master
Commit: 059b91b62ff814a0fb790903961bd8bc0133f1a5
Parents: d802419
Author: Hitesh Shah <hitesh@apache.org>
Authored: Thu Mar 5 15:37:14 2015 -0800
Committer: Hitesh Shah <hitesh@apache.org>
Committed: Thu Mar 5 15:37:14 2015 -0800

----------------------------------------------------------------------
 CHANGES.txt                                                    | 1 +
 .../java/org/apache/tez/util/TezMxBeanResourceCalculator.java  | 6 ++++++
 2 files changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tez/blob/059b91b6/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 4e113c4..da6900b 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -7,6 +7,7 @@ Release 0.7.0: Unreleased
 INCOMPATIBLE CHANGES
 
 ALL CHANGES:
+  TEZ-2178. YARN-3122 breaks tez compilation with hadoop 2.7.0.
   TEZ-2174. Make task priority available to TaskAttemptListener.
   TEZ-2169. Add NDC context to various threads and pools.
   TEZ-2171. Remove unused metrics code.

http://git-wip-us.apache.org/repos/asf/tez/blob/059b91b6/tez-plugins/tez-mbeans-resource-calculator/src/main/java/org/apache/tez/util/TezMxBeanResourceCalculator.java
----------------------------------------------------------------------
diff --git a/tez-plugins/tez-mbeans-resource-calculator/src/main/java/org/apache/tez/util/TezMxBeanResourceCalculator.java
b/tez-plugins/tez-mbeans-resource-calculator/src/main/java/org/apache/tez/util/TezMxBeanResourceCalculator.java
index 4aa8f85..c48225a 100644
--- a/tez-plugins/tez-mbeans-resource-calculator/src/main/java/org/apache/tez/util/TezMxBeanResourceCalculator.java
+++ b/tez-plugins/tez-mbeans-resource-calculator/src/main/java/org/apache/tez/util/TezMxBeanResourceCalculator.java
@@ -71,4 +71,10 @@ public class TezMxBeanResourceCalculator extends ResourceCalculatorProcessTree
{
   @Override public boolean checkPidPgrpidForMatch() {
     return true;
   }
+
+  public float getCpuUsagePercent() {
+    //osBean.getProcessCpuLoad() can be closer and returns [0 - 1.0], but might not be accurate.
+    //Returning -1 to indicate, this feature is not yet supported.
+    return -1;
+  }
 }


Mime
View raw message