当我尝试从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.
如果你知道怎么了,请帮忙。
2条答案
按热度按时间zf9nrax11#
检查你的书的内容
$HADOOP_HOME/conf/hadoop-env.sh
脚本,用于javau home export行-看起来这里有一个尾随引号。作为参考,我的版本如下:
如果你仍有问题,请将你的条目粘贴回原来的问题中
nc1teljy2#
要使用的java实现。
改变这个
到