Java – -Dhadoop.security.logger’ is not recognized as an internal or external command

-Dhadoop.security.logger’ is not recognized as an internal or external command… here is a solution to the problem.

-Dhadoop.security.logger’ is not recognized as an internal or external command

I’ve followed the > Installation instructions in GitHub Install Hadoop 2.8.0 in Windows 7. , I set the JAVA_HOME and HADOOP_HOME environment variables correctly, and configured the core-site.xml, mapred-site.xml, hdfs-site.xml, yarn-site.xml, hadoop-env.cmd file According to the documentation requirements, my path is

enter image description here

But after doing all this, after running the hdfs namenode –format command, I get the following error in the console

The system cannot find the path specified.
Error: JAVA_HOME is set incorrectly.
Please update C:\Hadoop-2.8.0\Hadoop-2.8.0\etc\hadoop\hadoop-env.cmd
‘-Dhadoop.security.logger’ is not recognized as an internal or external command

A runnable program or batch file.

Solution

Can the JAVA_HOME in hadoop-env.cmd be set to

set JAVA_HOME="C:\Program Files\Java\jdk1.8.0_77"

Java paths vary for 32-bit and 64-bit systems. Choose the correct javapath and add quotes.

Related Problems and Solutions