incubator-bigtop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eli Collins (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (BIGTOP-20) hard-coded pid location in Hadoop init.d scripts
Date Sat, 13 Aug 2011 06:42:27 GMT

     [ 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

        

Mime
View raw message