Details
Description
When start-dfs.sh is run by root user, we got the following error message:
- start-dfs.sh
Starting namenodes on [localhost ]
localhost: namenode running as process 2556. Stop it first.
localhost: starting datanode, logging to /usr/hadoop/hadoop-common-0.23.0-SNAPSHOT/bin/../logs/hadoop-root-datanode-cspf01.out
localhost: Unrecognized option: -jvm
localhost: Could not create the Java virtual machine.
The -jvm options should be passed to jsvc when we starting a secure
datanode, but it still passed to java when start-dfs.sh is run by root
while secure datanode is disabled. This is a bug of bin/hdfs.
Attachments
Attachments
Issue Links
- is cloned by
-
HDFS-2377 hdfs script reporting Unrecognized option: -jvm
- Resolved
- is duplicated by
-
HDFS-2377 hdfs script reporting Unrecognized option: -jvm
- Resolved
- is related to
-
BIGTOP-683 remove hacks for datanode init.d now that bin/hadoop has HDFS-1943 in it
- Open