Details
-
Type:
Improvement
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: CDH3b3
-
Fix Version/s: CDH3u2
-
Component/s: Hadoop Common, Packaging
-
Labels:None
-
Environment:CentOS 5.5, CDH3b3
Description
The init.d scripts installed as part of CDH3b3 RPMs have a hard-coded PID file, e.g.:
PIDFILE="/var/run/hadoop-0.20/hadoop-$HADOOP_IDENT_STRING-namenode.pid"
The init scripts should instead respect the values set in hadoop-env.sh
Current work-around is to set HADOOP_PID_DIR in hadoop-env.sh to /var/run/hadoop-0.20. Note that HADOOP_IDENT_STRING must be set to the same value in both /etc/default/hadoop-0.20 and hadoop-env.sh for the pid file to be found. It defaults to "hadoop" in /etc/default/hadoop-0.20.