hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Istvan Szegedi (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-8092) Hadoop DataNode cannot start up in Pseudo-Distributed mode using start-all.sh if it is run as root
Date Sat, 18 Feb 2012 16:52:59 GMT
Hadoop DataNode cannot start up in Pseudo-Distributed mode using start-all.sh if it is run
as root
--------------------------------------------------------------------------------------------------

                 Key: HADOOP-8092
                 URL: https://issues.apache.org/jira/browse/HADOOP-8092
             Project: Hadoop Common
          Issue Type: Bug
          Components: scripts
    Affects Versions: 0.20.203.0
         Environment: Centos 5.6, Java 1.6 (Sun JDK)

# java -version
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)

# uname -a
Linux server-56164 2.6.18-238.19.1.el5 #1 SMP Fri Jul 15 07:31:24 EDT 2011 x86_64 x86_64 x86_64
GNU/Linux

Pseudo-Distributed mode
            Reporter: Istvan Szegedi


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message