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

hadoop-daemons.sh doesnt work in cygwin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Won't Fix
    • 0.20.2
    • None
    • scripts
    • None
    • Windows 7 64-Bit, Cygwin

    Description

      if you run Hadoop in Pseudo-Distributed Mode in Windows under Cygwin, your Datanode will fail to start on execution of "start-dsf.sh". In the log there will be a ClassNotFoundException for org.apache.hadoop.util.PlatformName.

      The problem seems to be in 'hadoop-daemons.sh' in that line:
      exec "$bin/slaves.sh" --config $HADOOP_CONF_DIR cd "$HADOOP_HOME" \; "$bin/hadoop-daemon.sh" --config $HADOOP_CONF_DIR "$@"

      if you change it to:
      "$bin/slaves.sh" --config $HADOOP_CONF_DIR cd "$HADOOP_HOME" ; "$bin/hadoop-daemon.sh" --config $HADOOP_CONF_DIR "$@"

      the problems on cygwin are gone!

      Attachments

        Activity

          People

            Unassigned Unassigned
            wakka NilsK
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: