How to debug a Java error of "HOME is incorrectly set"?

时间:2019-03-06 11:36:04

标签: hadoop java-home

C:\Users\nilotpal.datta>hdfs namenode -format
Error: JAVA_HOME is incorrectly set.
       Please update C:\hadoop-2.8.0\etc\hadoop\hadoop-env.cmd
'-Dhadoop.security.logger' is not recognized as an internal or external command,
operable program or batch file.

I have attached below my screenshot of environment variables

Environment variables

Variables from Hadoop:

hadoop-env cmd file

1 个答案:

答案 0 :(得分:0)

在C:\ hadoop-2.8.0 \ etc \ hadoop \ hadoop-env.cmd设置中,

set JAVA_HOME=your full java path

然后再次格式化namenode