Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: CDH3u2
-
Fix Version/s: None
-
Component/s: HDFS
-
Labels:None
Description
conf/hadoop-env.sh contains the following by default:
export HADOOP_OPTS=' -server -Djava.net.preferIPv4Stack=true'
This causes the datanode service to fail to start:
root:~# service hadoop-0.20-datanode start Starting Hadoop datanode daemon (hadoop-datanode): starting datanode, logging to ... 22/11/2011 17:22:43 7038 jsvc error: Invalid option -server 22/11/2011 17:22:43 7038 jsvc error: Cannot parse command line arguments [FAIL]
This is on a Linux-amd64-64 architecture. You are bundling jsvc v1.0.2, which may not support -server. The current version of jsvc (1.0.7) explicitly lists -server in the arguments it supports. I think you may need to upgrade the jsvc version installed in the default package. As a workaround, I removed -server from my argument list in hadoop-env.sh and it successfully got past that point.