Updated Branches: refs/heads/branch-1.4.4 4d02841f0 -> 12c2781b4
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/12c2781b Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/12c2781b Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/12c2781b Branch: refs/heads/branch-1.4.4 Commit: 12c2781b4d7a5a1046ef07d7c9a48dd3fde87392 Parents: 4d02841 Author: Srimanth Gunturi <[email protected]> Authored: Thu Jan 23 12:31:21 2014 -0800 Committer: Srimanth Gunturi <[email protected]> Committed: Thu Jan 23 12:51:54 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/12c2781b/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 d651ad4..dc92cc9 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; },
