Return-Path: X-Original-To: apmail-ambari-commits-archive@www.apache.org Delivered-To: apmail-ambari-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D6E0110C05 for ; Thu, 23 Jan 2014 20:51:10 +0000 (UTC) Received: (qmail 16272 invoked by uid 500); 23 Jan 2014 20:51:10 -0000 Delivered-To: apmail-ambari-commits-archive@ambari.apache.org Received: (qmail 16214 invoked by uid 500); 23 Jan 2014 20:51:10 -0000 Mailing-List: contact commits-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@ambari.apache.org Delivered-To: mailing list commits@ambari.apache.org Received: (qmail 16200 invoked by uid 99); 23 Jan 2014 20:51:10 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jan 2014 20:51:10 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id D26368BD81A; Thu, 23 Jan 2014 20:51:09 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: srimanth@apache.org To: commits@ambari.apache.org Message-Id: <33b2666e69da4d83883b3028f614c792@git.apache.org> X-Mailer: ASF-Git Admin Mailer 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 +0000 (UTC) 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 Authored: Thu Jan 23 12:31:21 2014 -0800 Committer: Srimanth Gunturi 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; },