Hadoop Common
  1. Hadoop Common
  2. HADOOP-8386

hadoop script doesn't work if 'cd' prints to stdout (default behavior in Ubuntu)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.2
    • Fix Version/s: 1.2.0, 0.23.5
    • Component/s: scripts
    • Labels:
      None
    • Environment:

      Ubuntu

    • Hadoop Flags:
      Reviewed

      Description

      if the 'hadoop' script is run as 'bin/hadoop' on a distro where the 'cd' command prints to stdout, the script will fail due to this line: 'bin=`cd "$bin"; pwd`'

      Workaround: execute from the bin/ directory as './hadoop'

      Fix: change that line to 'bin=`cd "$bin" > /dev/null; pwd`'

      1. hadoop-8386-1.diff
        2 kB
        Harsh J
      2. hadoop-8386-1.diff
        0.7 kB
        Andy Isaacson
      3. hadoop-8386.diff
        0.5 kB
        Andy Isaacson
      4. hadoop.diff
        0.3 kB
        Christopher Berner

        Activity

          People

          • Assignee:
            Christopher Berner
            Reporter:
            Christopher Berner
          • Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development