在ubuntu中启动hadoop单节点集群时遇到问题

wko9yo5t  于 2021-06-04  发布在  Hadoop
关注(0)|答案(2)|浏览(366)

当我尝试从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.

如果你知道怎么了,请帮忙。

zf9nrax1

zf9nrax11#

检查你的书的内容 $HADOOP_HOME/conf/hadoop-env.sh 脚本,用于javau home export行-看起来这里有一个尾随引号。
作为参考,我的版本如下:


# The java implementation to use.  Required.

export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_07-i586

如果你仍有问题,请将你的条目粘贴回原来的问题中

nc1teljy

nc1teljy2#

要使用的java实现。
改变这个


# export JAVA_HOME=/usr/lib/jvm/jdk1.5.0

export JAVA_HOME=/usr/lib/jvm/jdk1.6.0

相关问题