0

我正在使用 hadoop-0.20.203,在我启动 hdfs 时做了必要的更改后,它在启动时抛出以下警告

root@master:/usr/local/hadoop-0.20.203# bin/start-all.sh 
starting namenode, logging to /usr/local/hadoop-0.20.203/bin/../logs/hadoop-root-namenode-master.out
master: starting datanode, logging to /usr/local/hadoop-0.20.203/bin/../logs/hadoop-root-datanode-master.out
master: Unrecognized option: -jvm
master: Error: Could not create the Java Virtual Machine.
master: Error: A fatal exception has occurred. Program will exit.
master: starting secondarynamenode, logging to /usr/local/hadoop-0.20.203/bin/../logs/hadoop-root-secondarynamenode-master.out
starting jobtracker, logging to /usr/local/hadoop-0.20.203/bin/../logs/hadoop-root-jobtracker-master.out
master: starting tasktracker, logging to /usr/local/hadoop-0.20.203/bin/../logs/hadoop-root-tasktracker-master.out
4

2 回答 2

1

以非 root 用户身份正常运行脚本。确保您的非 root 用户具有适当的权限。有关更多信息,请参阅此错误报告

https://issues.apache.org/jira/browse/HDFS-1943

于 2013-07-04T09:00:39.770 回答
0

使用sudo bin/start-all.sh并查看是否有帮助。理想情况下,您应该避免以root用户身份运行 Hadoop。

于 2013-07-04T07:01:35.007 回答