`

localhost: Error: JAVA_HOME is not set.

 
阅读更多

启动start-all.sh时出现如下错误:

root@ubuntu:/home/chenwq/hadoop/hadoop-0.21.0/bin# start-all.sh
This script is Deprecated. Instead use start-dfs.sh and start-mapred.sh
starting namenode, logging to /home/chenwq/hadoop/hadoop-0.21.0/bin/../logs/hadoop-root-namenode-ubuntu.out
localhost: Error: JAVA_HOME is not set.
localhost: Error: JAVA_HOME is not set.
starting jobtracker, logging to /home/chenwq/hadoop/hadoop-0.21.0/bin/../logs/hadoop-root-jobtracker-ubuntu.out
localhost: Error: JAVA_HOME is not set.

 

解决办法:

    在hadoop-0.21.0/conf/文件夹里有个hadoop-env.sh的文件,它的作用是配置与hadoop运行环境相关的变量,

export JAVA_HOME=/usr/lib/jvm/java-6-sun

 

2
0
分享到:
评论

相关推荐

    tomcat安装及配置教程 Linux下Tomcat+Nginx服务器环境安装配置简明教程.docx

    执行命令 `./configure --prefix=/opt/app/nginx` 进行安装,但可能会出现错误:`error: C compiler cc is not found`。根据网上的说法,安装编译源码所需的工具和库: `# yum install gcc gcc-c++ ncurses-devel ...

    tomcat启动问题

    set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_10 set JRE_HOME=C:\Program Files\Java\jdk1.6.0_10\jre rem 检查是否设置了必要的环境变量 if not "%JAVA_HOME%"=="" goto gotJdkHome if not "%JRE_HOME%"==...

    tomcat-5.5.23

    Install the JRE according to the instructions included with the release. <br>(1.3) Set an environment variable named JAVA_HOME to the pathname of the directory into which you installed the ...

    VB编程资源大全(英文源码 网络)

    AdvancedWebBrowser.zip Advanced web browser..something like IE but less options really nice interface..code is very easy to understand..teaches you the basics of using vb.<END><br>54 , iusage.zip...

    Tomcatmysql连接池的配置

    1. **问题**:`Name jdbc is not bound in this context`。 - **解决方法**:检查`web.xml`中的`res-ref-name`是否与数据源的`JNDIName`一致。 2. **问题**:`Cannot create JDBC driver of class '...

Global site tag (gtag.js) - Google Analytics