I'm trying to install hadoop on my computer (Windows 10, 64 bit) but when I go to test if it installed, I keep getting the error:
'-classpath' is not recognized as an internal or external command, operable program or batch file.
I have no idea why this is happening. I thought my system variables were set correctly but apparently not. I was just wondering if anyone could tell me what is going on with this -classpath stuff. Below is a snapshot of the error
And here are further images of my stem and path variables. As well as a snapshot of the bin directory in hadoop.
For me the problem was that %JAVA_HOME%
included a space in the path C:\\Program Files\\Java\\jdk1.8.0_191
. After changing it to C:\\Progra~1\\Java\\jdk1.8.0_191
it started to work. So check that all the relevant env variables (Java, Hadoop) are defined without spaces.
You have problem with your path . Your path contains some spaces. Just remove the spaces . Suppose any folder name in your path is like
Hadoop folder
You can clearly see the space in your folder name in your path so you just rename the folder name as
Hadoopfolder
Or
Hadoop-folder
Just rename it everywhere and try to install it again .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.