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)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.2
    • 1.2.0, 0.23.5
    • scripts
    • None
    • Ubuntu

    • 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

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

            Dates

              Created:
              Updated:
              Resolved: