Skip to content

Commit

Permalink
Enable debug logging for Accumulo servers (#264)
Browse files Browse the repository at this point in the history
* Enable debug logging for Accumulo servers

* Update ansible/roles/accumulo/templates/log4j-service.properties

Co-Authored-By: Christopher Tubbs <ctubbsii@apache.org>

* remove mortbay log line
  • Loading branch information
keith-turner authored and ctubbsii committed Aug 26, 2019
1 parent f5e002f commit 496d73f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions ansible/roles/accumulo/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
- tracers
- masters
- monitor
- log4j-service.properties
when: accumulo_major_version == '2'
- name: "configure accumulo 1.0 configuration"
template: src={{ item }} dest={{ accumulo_home }}/conf/{{ item }}
Expand Down
23 changes: 23 additions & 0 deletions ansible/roles/accumulo/templates/log4j-service.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=${accumulo.log.dir}/${accumulo.application}.log
log4j.appender.file.MaxFileSize=1000MB
log4j.appender.file.MaxBackupIndex=10
log4j.appender.file.Threshold=ALL
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{ISO8601} [%-8c{2}] %-5p: %m%n

# send logs to Accumulo monitor
log4j.appender.monitor=org.apache.accumulo.monitor.util.AccumuloMonitorAppender
log4j.appender.monitor.Threshold=WARN

# suppress spammy logging from 3rd party libs
log4j.logger.org.apache.zookeeper=ERROR
log4j.logger.org.apache.hadoop.io.compress=WARN

log4j.logger.org.apache.accumulo=DEBUG

# suppress some spammy Accumulo logging
log4j.logger.org.apache.accumulo.core.file.rfile.bcfile=INFO
log4j.logger.org.apache.accumulo.audit=OFF

log4j.rootLogger=INFO, file

0 comments on commit 496d73f

Please sign in to comment.