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

Hadoop DataNode cannot start up in Pseudo-Distributed mode using start-all.sh if it is run as root

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 0.20.203.0
    • None
    • scripts
    • None

    Description

      Hadoop DataNode cannot start-up if you run start-all.sh (or start-dfs.sh) as root.

      There is a HADOOP_OPTS setting in bin/hadoop file in case EUID equals 0 :

      ...
      elif [ "$COMMAND" = "datanode" ] ; then
      CLASS='org.apache.hadoop.hdfs.server.datanode.DataNode'
      if [[ $EUID -eq 0 ]]; then
      HADOOP_OPTS="$HADOOP_OPTS -jvm server $HADOOP_DATANODE_OPTS"
      else
      HADOOP_OPTS="$HADOOP_OPTS -server $HADOOP_DATANODE_OPTS"
      fi
      elif ...

      Since -jvm is not a recognized option by Sun HotSpot Java JVM (64-bit), an error message is generated:

      Unrecognized option: -jvm
      Could not create the Java virtual machine.

      If you replace -jvm server option with -server, DataNode will start up.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              szegedi Istvan Szegedi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: