ctubbsii commented on issue #344:
URL: https://github.com/apache/fluo-muchos/issues/344#issuecomment-625156547


   Could the root of this problem be that Muchos is attempting to override 
`accumulo-env.sh` with its own 
`ansible/roles/accumulo/templates/accumulo-env.sh`, which sets up its own 
`ansible/roles/accumulo/templates/log4j-service.properties`?
   
   It's possible log4j2 is trying to do some backwards-compatible log4j1 config 
file parsing, since log4j2 jars are on the classpath for 2.1.0-SNAPSHOT, but 
not succeeding for some reason.
   
   A good fix might update Muchos' version of `accumulo-env.sh` to be based on 
the one in the 2.1.0-SNAPSHOT, and similarly, use different log4j2 config 
files, closer to those in the 2.1.0-SNAPSHOT source.
   
   Separate, but related, issue: Since Muchos is trying to override log 
configuration explicitly anyway, I think it would probably be better if Muchos' 
log4j settings just used the system logger, and instead of trying to output to 
`${accumulo.log.dir}`. Ideally, Muchos would only support systemd, and the 
config file would just log stuff to the console, which is automatically 
captured by journald, and it wouldn't use any file-based log settings at all. 
The file-based logging solution is really for out-of-the-box Accumulo 
installs... a curated deployment using something like Muchos can use smarter 
approaches to log collection, by leveraging the deployed environment's tooling 
for log collection maintained by the system admin (journald, syslog, etc.).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to