accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <>
Subject [jira] [Commented] (ACCUMULO-2373) Daemons should be able to log if specifies sufficient logging
Date Tue, 18 Feb 2014 22:27:19 GMT


Josh Elser commented on ACCUMULO-2373:

bq. The fix for when no matching *_logger.xml is present, we probably don't need to start
the thread which I think would fix the issue your raised. I'm not sure if Log4j's file watchdog
code is smart enough to pick up logging if it wasn't present at the beginning – need to
test that.

Turns out -- this does work. If you start the procs without the generic_logger.xml file, later
add it in, logging will be picked up. However, adding in a specific logger.xml (tserver_logger.xml)
after the fact will not work. This means that my initial thought would be insufficient as
it would break the ability for me to add the file after the fact.

I think, first of all, we should print (to STDOUT to be safe) which file the logging was configured
from. I think avoiding a reset of the logger as long as the file is non-existent should accomplish
what I initially hoped.

> Daemons should be able to log if specifies sufficient logging
> ------------------------------------------------------------------------------
>                 Key: ACCUMULO-2373
>                 URL:
>             Project: Accumulo
>          Issue Type: Bug
>            Reporter: Vikram Srivastava
>         Attachments:
> Before this commit:
> commit 0351d0d416df51f0b10d91acdc074dced36e40d4
> Author: Josh Elser <>
> Date:   Mon Feb 10 23:28:31 2014 -0500
>     ACCUMULO-2334 Remove ACCUMULO_LOG_HOST in favor of pull host and port log-forwarding
from zookeeper
> I was able to do logging with only However, that doesn't work anymore.
All my daemons have this as the last line of their logs:
> {noformat}
> 2014-02-14 14:23:38,049 INFO org.apache.accumulo.server.Accumulo: Zookeeper connected
and initialized, attemping to talk to HDFS
> 2014-02-14 14:23:38,067 INFO org.apache.accumulo.server.watcher.MonitorLog4jWatcher:
Changing monitor log4j address to
> 2014-02-14 14:23:38,067 INFO org.apache.accumulo.server.watcher.MonitorLog4jWatcher:
Enabled log-forwarding
> {noformat}
> Note that I don't use generic_logger.xml, and this wasn't a requirement for 1.4. But
now it seems there is no logging if *_logger.xml files are not present (as ACCUMULO-2349 has
also reported).

This message was sent by Atlassian JIRA

View raw message