我正在尝试在Windows 10中安装Hadoop 2.6,同时这样做我的错误
C:\hadoop-2.6.2\bin>hadoop -version
The system cannot find the path specified.
Error: JAVA_HOME is incorrectly set.
Please update C:\hadoop-2.6.2\conf\hadoop-env.cmd
'-Xmx512m' is not recognized as an internal or external command, operable program or batch file.
答案 0 :(得分:1)
我有同样的问题,可以通过2种方式解决。
设置JAVA_HOME =您的jdk主目录
设置PATH =%JAVA_HOME%/ bin