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

halfer
  • 19,824
  • 17
  • 99
  • 186

1 Answers1

0

In C:\hadoop-2.8.0\etc\hadoop\hadoop-env.cmd Set,

set JAVA_HOME=your full java path

then again format namenode