Hadoop Common
  1. Hadoop Common
  2. HADOOP-7373

Tarball deployment doesn't work with {start,stop}-{dfs,mapred}

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.20.204.0
    • Component/s: None
    • Labels:
      None

      Description

      The hadoop-config.sh overrides the variable "bin", which makes the scripts use libexec for hadoop-daemon(s).

      1. c.patch
        1.0 kB
        Owen O'Malley

        Activity

        Hide
        Owen O'Malley added a comment -

        This also applies to the hadoop-daemons.sh when it is looking up slaves.sh

        Show
        Owen O'Malley added a comment - This also applies to the hadoop-daemons.sh when it is looking up slaves.sh
        Hide
        Owen O'Malley added a comment -

        This patch fixes hadoop-config.sh to use a different variable name, so that the other scripts don't get their environment clobbered.

        Show
        Owen O'Malley added a comment - This patch fixes hadoop-config.sh to use a different variable name, so that the other scripts don't get their environment clobbered.
        Hide
        Eric Yang added a comment -

        We can probably remove the entire block for 0.20.20x:

        # convert relative path to absolute path
        bin=`dirname "$this"`
        script=`basename "$this"`
        bin=`cd "$bin"; pwd`
        this="$bin/$script"
        
        Show
        Eric Yang added a comment - We can probably remove the entire block for 0.20.20x: # convert relative path to absolute path bin=`dirname "$this"` script=`basename "$this"` bin=`cd "$bin"; pwd` this="$bin/$script"
        Hide
        Eli Collins added a comment -

        I think you'll need these if you want the init scripts to run on boot.

        Show
        Eli Collins added a comment - I think you'll need these if you want the init scripts to run on boot.
        Hide
        Giridharan Kesavan added a comment -

        +1 looks good, thanks Owen.

        Show
        Giridharan Kesavan added a comment - +1 looks good, thanks Owen.
        Hide
        Owen O'Malley added a comment -

        It looks like trunk didn't have the problem.

        Show
        Owen O'Malley added a comment - It looks like trunk didn't have the problem.
        Hide
        Owen O'Malley added a comment -

        Hadoop 0.20.204.0 was released today.

        Show
        Owen O'Malley added a comment - Hadoop 0.20.204.0 was released today.

          People

          • Assignee:
            Owen O'Malley
            Reporter:
            Owen O'Malley
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development