Bigtop
  1. Bigtop
  2. BIGTOP-20

hard-coded pid location in Hadoop init.d scripts

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.1.0
    • Fix Version/s: 0.2.0
    • Component/s: debian, rpm
    • Labels:
      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.

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

        Issue Links

          Activity

          Roman Shaposhnik created issue -
          Eli Collins made changes -
          Field Original Value New Value
          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.
          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.
          Roman Shaposhnik made changes -
          Assignee Roman Shaposhnik [ rvs ]
          Roman Shaposhnik made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Roman Shaposhnik made changes -
          Attachment BIGTOP-20.patch.txt [ 12491017 ]
          Andrew Bayer made changes -
          Fix Version/s 0.2.0 [ 12317591 ]
          Affects Version/s 0.1.0 [ 12317549 ]
          Component/s Debian [ 12315312 ]
          Component/s RPM [ 12315311 ]
          Mark Thomas made changes -
          Workflow jira [ 12627045 ] no-reopen-closed, patch-avail [ 12631058 ]
          Roman Shaposhnik made changes -
          Status In Progress [ 3 ] Patch Available [ 10002 ]
          Roman Shaposhnik made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Gavin made changes -
          Workflow no-reopen-closed, patch-avail [ 12631058 ] patch-available, re-open possible [ 12666191 ]
          Roman Shaposhnik made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Masatake Iwasaki made changes -
          Link This issue relates to BIGTOP-1038 [ BIGTOP-1038 ]

            People

            • Assignee:
              Roman Shaposhnik
              Reporter:
              Roman Shaposhnik
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development