You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ma...@apache.org on 2013/10/03 02:14:21 UTC

git commit: AMBARI-3439. Ambari is setting the max file size to 1MB for hadoop and thus creates lots of logs. (mahadev)

Updated Branches:
  refs/heads/trunk 83d03436a -> 1b300393d


AMBARI-3439. Ambari is setting the max file size to 1MB for hadoop and thus creates lots of logs. (mahadev)


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

Branch: refs/heads/trunk
Commit: 1b300393d8ea0d28dcc30b59c56d2dfb65b7ff43
Parents: 83d0343
Author: Mahadev Konar <ma...@apache.org>
Authored: Wed Oct 2 17:05:16 2013 -0700
Committer: Mahadev Konar <ma...@apache.org>
Committed: Wed Oct 2 17:14:22 2013 -0700

----------------------------------------------------------------------
 .../puppet/modules/hdp-hadoop/templates/log4j.properties.erb     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/1b300393/ambari-agent/src/main/puppet/modules/hdp-hadoop/templates/log4j.properties.erb
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/puppet/modules/hdp-hadoop/templates/log4j.properties.erb b/ambari-agent/src/main/puppet/modules/hdp-hadoop/templates/log4j.properties.erb
index 32d30d4..3eede34 100644
--- a/ambari-agent/src/main/puppet/modules/hdp-hadoop/templates/log4j.properties.erb
+++ b/ambari-agent/src/main/puppet/modules/hdp-hadoop/templates/log4j.properties.erb
@@ -131,8 +131,8 @@ log4j.appender.RFA=org.apache.log4j.RollingFileAppender
 log4j.appender.RFA.File=${hadoop.log.dir}/${hadoop.log.file}
 
 # Logfile size and and 30-day backups
-log4j.appender.RFA.MaxFileSize=1MB
-log4j.appender.RFA.MaxBackupIndex=30
+log4j.appender.RFA.MaxFileSize=256MB
+log4j.appender.RFA.MaxBackupIndex=10
 
 log4j.appender.RFA.layout=org.apache.log4j.PatternLayout
 log4j.appender.RFA.layout.ConversionPattern=%d{ISO8601} %-5p %c{2} - %m%n