Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-683

bin/hadoop.sh doesn't work for /bin/dash (eg ubuntu 6.10b)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0
    • Component/s: scripts
    • Labels:
      None
    • Environment:

      osx, ubuntu 6.10b

      Description

      bin/hadoop.sh has a conditional which doesn't work with /bin/dash which ubuntu 6.10b symlinks to /bin/sh.

      here's a trivial patch that works for me:

      Index: bin/hadoop-daemon.sh
      ===================================================================
      — bin/hadoop-daemon.sh (revision 468719)
      +++ bin/hadoop-daemon.sh (working copy)
      @@ -56,7 +56,7 @@
      pid=$HADOOP_PID_DIR/hadoop-$HADOOP_IDENT_STRING-$command.pid

      1. Set default scheduling priority
        -if [ "$HADOOP_NICENESS" == "" ]; then
        +if [ "$HADOOP_NICENESS" = "" ]; then
        export HADOOP_NICENESS=0
        fi

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gonzo James Todd
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: