getting JAVA_HOME is incorrectly set with hadoop
Issue was with space in JAVA_HOME path . I change the path as below and it started working.
from -
"C:\Program Files\Java\jdk1.8.0_45\bin"
to -
"C:\PROGRA~1\Java\jdk1.8.0_45\bin"
.
Your JAVA_HOME
should not include bin
. Change it from
"C:\Program Files\Java\jdk1.8.0_45\bin"
to
"C:\Program Files\Java\jdk1.8.0_45"
And you can add it to your path (in Windows) like
set "PATH=%PATH%;%JAVA_HOME%\bin"