Resolution: Not A Problem
Affects Version/s: 0.20.205.0, 0.23.1
Fix Version/s: None
it would be nice if the jsvc pid file were properly namespaced in /var/run to avoid collisions with other jsvc instances
jsvc uses /var/run/jsvc.pid for the datanode pid file. If that's configurable, it should be configured: /var/run/jsvc.pid is sorely not namespaced.
if [ "$_HADOOP_DAEMON_DETACHED" = "true" ]; then
- Even though we are trying to run a non-detached datanode,
- jsvc will not write to stdout/stderr, so we have to pipe
- it and tail the logfile.
echo Non-detached jsvc output piping to: $log_path
tail -f $log_path &
And the relevant argument is '-pidfile' (http://linux.die.net/man/1/jsvc).