'after Hadoop installation why cmd shows c:\program not recognized in an internal and external command when I want to see Hadoop version
everything is ok.
But when I run commands in cmd then an error shows that is 'C:\Program' is not recognized as an internal or external command, operable program or batch file. what is the problem??

Solution 1:[1]
Hadoop prefers you don't have spaces in its installation paths.
That being said, Hadoop is not a "Windows program"; it doesn't need to be in Program Files folder.
Regarding the error, you additionally need to edit your OS PATH environment variable to include %HADOOP_HOME%\bin, as well as define HADOOP_HOME.
In addition, last I checked, Hadoop does not support Java versions over 11.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | OneCricketeer |
