Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
0.20.203.0
-
None
-
None
-
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
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 - java -version
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
- is related to
-
HADOOP-9902 Shell script rewrite
- Resolved