Uploaded image for project: '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
    • Status: Closed
    • Priority: 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`'

        Attachments

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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: