-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
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.
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.