Description
The init.d scripts 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.
Attachments
Attachments
Issue Links
- relates to
-
BIGTOP-1038 PIDFILE in service scripts of Hadoop is inconsistent with the path in hadoop-daemon.sh
- Open