MuhammadBilalYar / Hadoop-On-Window

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

Windows 10, Hadoop 2.7.6, JAVA_HOME error, classpath is not recognized #8

Open myvalidator opened 6 years ago

myvalidator commented 6 years ago

Error msg asked to update Hadoop-env.cmd code Following is the code, there is no "contrib" folder: set JAVA_HOME=C:\Java\jdk1.8.0_181 @rem The jsvc implementation to use. Jsvc is required to run secure datanodes. @rem set JSVC_HOME=%JSVC_HOME% @rem set HADOOP_CONF_DIR= @rem Extra Java CLASSPATH elements. Automatically insert capacity-scheduler. if exist %HADOOP_HOME%\contrib\capacity-scheduler ( if not defined HADOOP_CLASSPATH ( set HADOOP_CLASSPATH=%HADOOP_HOME%\contrib\capacity-scheduler*.jar ) else ( set HADOOP_CLASSPATH=%HADOOP_CLASSPATH%;%HADOOP_HOME%\contrib\capacity-scheduler*.jar ) ) I appreciate any assistance you can provide to help me solve this problem.

carlvice commented 5 years ago

Can you please type "echo %JAVA_HOME%" in your cmd windows and confirm that it is same as "C:\Java\jdk1.8.0_181".

manaseegodsay commented 5 years ago

Hi, I am facing the same issue. Here's a screenshot: image

carlvice commented 5 years ago

Hey

JAVA_HOME should be C:\Java\jdk1.8.0_172 and not till "\bin".

Hi, I am facing the same issue. Here's a screenshot: image

manaseegodsay commented 5 years ago

Hey, Thanks for the response. I tried both the ways, still doesn't work.

r-rachuri commented 5 years ago

Try the installation process from the below link, it is working.

https://exitcondition.com/install-hadoop-windows/#comment-13

sannnan commented 5 years ago

you must use windows short path instead of whole path in hdfs configuration file.

e.g set JAVA_HOME=C:\PROGRA~1\Java\JDK18~1.0_1