|
I've noticed that rebooting hosts screws up tasktracker from starting normally via warden. It works fine if I /etc/init.d/mapr-warden restart with a shell that has JAVA_HOME defined. If that's the problem, what's the best way to set JAVA_HOME for init.d scripts in oneiric? /etc/environment isn't doing the trick, and I assume that the scripts get overwritten at an update (and I don't really like to entertain the thought of changing packaged files) Thanks! |
|
Two options would be to set the java home in either the init script for warden directly, or in the hadoop-env.sh file inside /opt/mapr/hadoop/hadoop-ver/ so, the answer is apparently "not in a way that doesn't modify the packaged files"? I'm just hoping to avoid pain at the next upgrade :) Thanks.
(12 Feb '12, 10:55)
peppert
|
|
I think setting JAVA_HOME in /etc/environment should work, but I am not sure if /etc/environment is sourced before or after the scripts in /etc/rc.d/... are run. Putting it in /etc/profile will have no effect for the rc scripts, but is advisable for users logging in to the system. unfortunately, no. /etc/environment doesn't work, at least in oneiric. so far only setting it directly in the mapr-warden script or hadoop-env.sh seem to work.
(12 Feb '12, 11:13)
peppert
what is oneiric?
(12 Feb '12, 11:18)
MC Srivas ♦♦
Ubuntu 11.10 (Oneiric Ocelot)
(12 Feb '12, 17:57)
Nabeel ♦♦
|