hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allen Wittenauer (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HADOOP-8092) Hadoop DataNode cannot start up in Pseudo-Distributed mode using start-all.sh if it is run as root
Date Fri, 08 Aug 2014 22:22:12 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-8092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Allen Wittenauer resolved HADOOP-8092.
--------------------------------------

    Resolution: Won't Fix

start-all is deprecated in recent releases.  Closing this as won't fix.

> 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 was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message