gpt4 book ai didi

shell - 在Ubuntu中启动hadoop单节点集群时遇到问题

转载 作者:行者123 更新时间:2023-12-02 21:54:05 26 4
gpt4 key购买 nike

当我尝试从Shell启动Ubuntu中的Hadoop集群时,出现以下错误:

    hduser@duleep-G31M-S2L:/usr/local/hadoop$ /usr/local/hadoop/bin/start-all.sh
/usr/local/hadoop/libexec/../conf/hadoop-env.sh: line 9: export: `/usr/lib/jvm/jdk1.7.0_09': not a valid identifier
Warning: $HADOOP_HOME is deprecated
localhost: /usr/local/hadoop/libexec/../conf/hadoop-env.sh: line 9: export: `/usr/lib/jvm/jdk1.7.0_09': not a valid identifier
localhost: Error: JAVA_HOME is not set.
/usr/local/hadoop/libexec/../conf/hadoop-env.sh: line 9: export: `/usr/lib/jvm/jdk1.7.0_09': not a valid identifier
jobtracker running as process 8066. Stop it first.
localhost: starting tasktracker, logging to /usr/local/hadoop/libexec/../logs/hadoop-hduser-tasktracker-duleep-G31M-S2L.out
localhost: /usr/local/hadoop/libexec/../conf/hadoop-env.sh: line 9: export: `/usr/lib/jvm/jdk1.7.0_09': not a valid identifier
localhost: Error: JAVA_HOME is not set.

如果您知道出了什么问题,请提供帮助。

最佳答案

检查您的$HADOOP_HOME/conf/hadoop-env.sh脚本的内容,以获取JAVA_HOME导出行-好像您的行尾带有引号。

供引用,这是我的版本:

# The java implementation to use.  Required.
export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_07-i586

如果仍然有问题,请将您的输入内容粘贴回原始问题中

关于shell - 在Ubuntu中启动hadoop单节点集群时遇到问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16759303/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com