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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 0.20.203.0
    • Fix Version/s: None
    • Component/s: scripts
    • Labels:
      None
    • Environment:

      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.

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              Istvan Szegedi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development