Context: I am trying to install Hadoop on my Windows 10 machine. I've followed the directions here and I'm having a lot of difficulty completing the process. I keep raising the following error:
The system cannot find the path specified. Error: JAVA_HOME is incorrectly set. Please update C:\Users\eric\Downloads\hadoop-3.1.4.tar\hadoop-3.1.4\hadoop-3.1.4\etc\hadoop\hadoop-env.cmd'-Dhadoop.security.logger' is not recognized as an internal or external command, operable program or batch file.
When I check the version of Java I get the following, so I know for sure Java has been installed.
C:\Java\bin>java -version
java version "1.8.0_261"
Java(TM) SE Runtime Environment (build 1.8.0_261-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.261-b12, mixed mode)
I gather from the above error there's an issue with the path in the environment variable I've set for JAVA_HOME. I'm really unclear why the error refers to that directory in the message because when I echo %JAVA_HOME%
at terminal I get C:\Java\bin
as the environment variable path (as recommended here).
Question: I'm guessing the jdk file cant be found/is lost or something else. How do I resolve these issues? And where can I find this JDK file (the jdkl.8.0_241
file shown @11:55 in the video) because it doesnt appear to be in the bin folder of the JDK download? Please help. This question is NOT a duplicate, because the issue seems to be more closely related to the JDK file.