我正在使用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
答案 0 :(得分:1)
以非root用户身份正常运行脚本。确保您的非root用户具有适当的权限。有关更多信息,请参阅此错误报告
答案 1 :(得分:0)
使用sudo bin/start-all.sh
并查看是否有帮助。理想情况下,您应该避免将Hadoop作为root
用户运行。