Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-20

hard-coded pid location in Hadoop init.d scripts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.1.0
    • 0.2.0
    • debian, rpm
    • None

    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

        1. BIGTOP-20.patch.txt
          2 kB
          Roman Shaposhnik

        Issue Links

          Activity

            People

              rvs Roman Shaposhnik
              rvs Roman Shaposhnik
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: