accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser" <>
Subject Re: Review Request 17860: Review of changes that remove the necessity for ACCUMULO_LOG_HOST
Date Mon, 10 Feb 2014 22:26:14 GMT

This is an automatically generated e-mail. To reply, visit:

(Updated Feb. 10, 2014, 10:26 p.m.)

Review request for accumulo.


Apparently I botched the last patch update.

Fixes whitespace nits. Disable SocketAppender when monitor goes away, re-enable on configuration
file update or ZK update. Re-work the monitor info in ZK and force the Monitor to grab a lock
before starting (prevents multiple active monitors with only one getting remote logging).

Bugs: ACCUMULO-2334

Repository: accumulo


Removes the necessity to compute and set ACCUMULO_LOG_HOST. We can accomplish this by having
the monitor advertise a host in addition to just the port and have the other processes place
a watcher on that node in zookeeper.

This has some nice benefits to simplifying the code, removing the annoying (IMO) ACCUMULO_LOG_HOST
variable, and, when running the monitor on a random port, the other services can auto-discover
without having to update configuration files and restart the services. The auto-discovery
also has benefit if the monitor has to be moved to a different host (or multiple monitors
are being run with "failover")

Diffs (updated)

  conf/examples/1GB/native-standalone/ aa4a1d0 
  conf/examples/1GB/standalone/ 1707f3d 
  conf/examples/2GB/native-standalone/ ef74ca7 
  conf/examples/2GB/standalone/ 75014c2 
  conf/examples/3GB/native-standalone/ ae0da11 
  conf/examples/3GB/standalone/ 7edd938 
  conf/examples/512MB/native-standalone/ 749a678 
  conf/examples/512MB/standalone/ 9beb059 
  core/src/main/java/org/apache/accumulo/core/ 9bb3419 
  core/src/main/java/org/apache/accumulo/core/conf/ 424b737 
  core/src/main/java/org/apache/accumulo/core/util/ af9a1a6 
  server/src/main/java/org/apache/accumulo/server/ f4da33b 
  server/src/main/java/org/apache/accumulo/server/monitor/ 10ef9e4 
  server/src/main/java/org/apache/accumulo/server/monitor/ dcb80fd 
  server/src/main/java/org/apache/accumulo/server/util/ 7a07107 
  server/src/main/java/org/apache/accumulo/server/util/ baa5400 
  server/src/main/java/org/apache/accumulo/server/watcher/ PRE-CREATION



Local testing so far. Configure the monitor to use a random log4j port, start an instance.
Then, test log forwarding works. Restart the monitor, check that the tserver saw the update,
and that log forwarding still works even though the monitor is now listening on a different
port for log4j.


Josh Elser

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message