incubator-bigtop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <>
Subject init.d scripts and config file loadings
Date Tue, 24 Jul 2012 21:44:47 GMT
I've been staring at some shell scripts, trying to work out why logs go
into a different place when the init.d scripts run than when the command
line hadoop daemons run.

That is, why do the settings in /etc/hadoop/conf not get picked up?

The answer is, of course, because the default values override the
customisations due to the second read of the files:

. /etc/default/hadoop

 # ...

. /usr/lib/hadoop/bin/
# FIXME: this needs to be removed once stop clobbering
. /etc/default/hadoop

We've got two different config systems fighting here.

I propose

   1. The core hadoop conf files are set up to always handle a predefined
   value and not override it (remember, per-installation confs can fix that)
   2. the init.d daemons only read the values in once.

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