MuhammadBilalYar / Hadoop-On-Window

HADOOP 2.8.0 (22 March, 2017) INSTALLATION ON WINDOW 10
153 stars 167 forks source link

Windows cannot find 'hadoop'. Make sure you typed the name correctly, and then try again. #19

Open shivansh-infogain opened 5 years ago

shivansh-infogain commented 5 years ago

I'm getting this message when I try the command: start-all.cmd Windows cannot find 'hadoop'. Make sure you typed the name correctly, and then try again. Windows cannot find 'yarn'. Make sure you typed the name correctly, and then try again. image

Can anyone help ?

espionn commented 5 years ago

This is likely due to you not having set your PATH environment variable correctly. If you type echo %PATH% into cmd and paste the output here it will be easier to debug the issue.

priyam001 commented 4 years ago

C:\Program Files (x86)\Python38-32\Scripts\;C:\Program Files (x86)\Python38-32\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Java\jdk1.8.0_261\bin;C:\Program Files\MongoDB\Server\4.4\bin;C:\Program Files (x86)\scala\bin;%SPARK_HOME%\bin;%JAVA_HOME%\bin;%HADOOP_HOME%\sbin;C:\Users\PHANTOM\AppData\Local\Microsoft\WindowsApps;C:\spark\spark-2.4.6-bin-hadoop2.7\bin;C:\spark\Hadoop\bin;C:\Program Files\Java\jdk1.8.0_261\bin;C:\hadoop\hadoop\sbin;

This is likely due to you not having set your PATH environment variable correctly. If you type echo %PATH% into cmd and paste the output here it will be easier to debug the issue.

sidharth1805 commented 2 years ago

Instead of going to sbin directory go to bin directory and run your cmd. It worked for me.