本文介绍了在Windows 10上安装Hadoop 2.7.2时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尝试执行任何与hadoop相关的cmd操作时遇到此错误:
Getting this error while trying to execute any hadoop related cmd operations:
`Error: JAVA_HOME is incorrectly set.
Please update C:\Hadoop\hadoop-2.7.2\conf\hadoop-env.cmd '-Xmx512m' is not recognized as an internal or external command, operable program or batch file.`
我的JAVA_HOME在环境变量中设置为C:\Program Fies(x86)\Java\jdk1.8.0_91
.我还更改了C:\Hadoop\hadoop-2.7.2\etc\hadoop-env.sh
,并使JAVA_HOME
等于上述值.
My JAVA_HOME is set to C:\Program Fies(x86)\Java\jdk1.8.0_91
in the environment variables.I've also changed C:\Hadoop\hadoop-2.7.2\etc\hadoop-env.sh
, and made JAVA_HOME
equal to the above value.
推荐答案
间距是这里的问题.将Java安装为C:\java\jdk
而不是C:\Program Fies(x86)\Java\jdk1.8.0_91
,这在Windows 8.1中对我有用.
Spacing is the problem here. Install java as C:\java\jdk
instead of C:\Program Fies(x86)\Java\jdk1.8.0_91
, This is worked for me in windows 8.1.
这篇关于在Windows 10上安装Hadoop 2.7.2时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!