知识点
相关文章
更多最近更新
更多[Hadoop] Error: JAVA_HOME is not set
2019-03-28 14:08|来源: 网络
在namenode启动脚本%Hadoop_HOME%/bin/start-dfs.sh的时候发现datanode报错:
Error: JAVA_HOME is not set
原因是在%HADOOP_HOME%/conf/hadoop-env.sh内缺少JAVA_HOME的定义,只需要在hadoop-env.sh中增加:
JAVA_HOME=/your/jdk/root/path
即可
相关问答
更多-
windows下安装hadoop总是出错 JAVA_HOME is not set.[2022-08-30]
成不成功看看你的启动日志有没有报错 其次JAVA_HOME是在环境变量设置的 -
JAVA_HOME没有指向JDK(JAVA_HOME not pointed at JDK)[2024-02-11]
尝试设置系统环境变量: setx JAVA_HOME C:\Android\JDK To solve my issue, I ended up having to uninstall & reinstall the JDK, making sure NOT to install the JRE that is included with the JDK (the second version, the 'stand-alone' JRE, not the JRE included IN the JDK). ... -
Hadoop:安装问题(Hadoop: installation problems)[2022-02-15]
使用bash而不是sh来调用脚本。 这解决了我的问题。 Use bash and not sh to invoke the scripts. That solved my problem. -
如果您不想修改配置,可以使用sudo -E ./pig 。 -E表示将当前用户的环境传递给sudo用户。 If you don't want to modify the configuration, you can use use sudo -E ./pig. -E means passing the environment of current user to the sudo users.
-
export JAVA_HOME=c:/program\ files\ \(x86\)/java/jre7 export JAVA_HOME=c:/program\ files\ \(x86\)/java/jre7
-
JAVA_HOME不应该指向java可执行文件',而应该指向可以找到其他java文件的地方。 我认为它是/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/ 。 我认为你可以使用update-alternatives --display java来显示所有安装的javas。 JAVA_HOME shouldn't point to the java executable ', but rather to the place where the rest of the java fil ...
-
您以root用户身份运行该命令,因此应用程序看到的环境变量对于root用户而非您的用户是可见的。 只需检查root是否设置了JAVA_HOME环境变量,或者尽可能以您的用户身份运行该程序。 你可以尝试sudo -E bin/nutch inject urls 正如sudo手册所说,-E, - preserve-env向安全策略指示用户希望保留其现有环境变量。 如果用户没有保留环境的权限,则安全策略可能会返回错误。 You are running the command as root user, so th ...
-
删除等号和export路径之间的空格。 对于那种事情,Shell脚本可能有点挑剔。 Remove that space between the equals sign and the path in your export. Shell scripting can be a little finicky about that kind of thing.
-
尝试设置$ JAVA_HOME时出错 - 错误:未设置JAVA_HOME(Error when trying to set the $JAVA_HOME - Error : JAVA_HOME is not set)[2022-03-24]
确保将JAVA_HOME变量导出到后续执行的命令的环境中。 在.bashrc文件中放: export JAVA_HOME=/usr/java/default Make sure your JAVA_HOME variable is exported to the environment of subsequently executed commands. In your .bashrc file put: export JAVA_HOME=/usr/java/default -
对于您正在使用的Hadoop版本,Hadoop示例jar文件是hadoop-1.0.3-examples.jar`。 在命令中使用正确的jar文件名,它应该工作。 来到JAVA_HOME,它设置正确,因为你得到一个Java异常,否则它将是一个不同的错误。 希望能帮助到你。 对于那些开始使用Hadoop的人来说,这是一个有用资源的综合列表。 I must have gone to the "libexec" folder and then ran that command.