You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bigtop.apache.org by "Eli Collins (JIRA)" <ji...@apache.org> on 2011/08/13 08:42:27 UTC

[jira] [Updated] (BIGTOP-20) hard-coded pid location in Hadoop init.d scripts

     [ https://issues.apache.org/jira/browse/BIGTOP-20?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eli Collins updated BIGTOP-20:
------------------------------

    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.

  was:
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.



> hard-coded pid location in Hadoop init.d scripts
> ------------------------------------------------
>
>                 Key: BIGTOP-20
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-20
>             Project: Bigtop
>          Issue Type: Bug
>            Reporter: Roman Shaposhnik
>            Priority: Minor
>
> 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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira