ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From srima...@apache.org
Subject git commit: AMBARI-4404. mapreduce.task.io.sort.mb max value should not exceed 1024mb. (srimanth)
Date Thu, 23 Jan 2014 20:51:09 GMT
Updated Branches:
  refs/heads/trunk 375d08365 -> 5363f8416


AMBARI-4404. mapreduce.task.io.sort.mb max value should not exceed 1024mb. (srimanth)


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

Branch: refs/heads/trunk
Commit: 5363f84168f0fae24928d52626a7d307d51eaf69
Parents: 375d083
Author: Srimanth Gunturi <sgunturi@hortonworks.com>
Authored: Thu Jan 23 12:31:21 2014 -0800
Committer: Srimanth Gunturi <sgunturi@hortonworks.com>
Committed: Thu Jan 23 12:31:33 2014 -0800

----------------------------------------------------------------------
 .../app/utils/configs/defaults_providers/yarn_defaults_provider.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/5363f841/ambari-web/app/utils/configs/defaults_providers/yarn_defaults_provider.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/utils/configs/defaults_providers/yarn_defaults_provider.js b/ambari-web/app/utils/configs/defaults_providers/yarn_defaults_provider.js
index b75b395..0e6e312 100644
--- a/ambari-web/app/utils/configs/defaults_providers/yarn_defaults_provider.js
+++ b/ambari-web/app/utils/configs/defaults_providers/yarn_defaults_provider.js
@@ -233,7 +233,7 @@ App.YARNDefaultsProvider = App.DefaultsProvider.create({
     configs['mapreduce.reduce.memory.mb'] = Math.round(this.get('reduceMemory'));
     configs['mapreduce.map.java.opts'] = "-Xmx" + Math.round(0.8 * this.get('mapMemory'))
+ "m";
     configs['mapreduce.reduce.java.opts'] = "-Xmx" + Math.round(0.8 * this.get('reduceMemory'))
+ "m";
-    configs['mapreduce.task.io.sort.mb'] = Math.round(0.4 * this.get('mapMemory'));
+    configs['mapreduce.task.io.sort.mb'] = Math.round(Math.min(0.4 * this.get('mapMemory'),
1024));
     return configs;
   },
 


Mime
View raw message