If you install the hadoop in windows, after the installation, you will confront this problem: you can not set the evironment valuable.

This file won’t work: c:\deploy\etc\hadoop\hadoop-env.cmd

If you do this step: “%HADOOP_PREFIX%\sbin\start-dfs.cmd”

Then you will see a error message about JAVA_HOME not found. This is very strange for you, because you are sure, you have already done the JAVA_HOME Setting.

The reason for that is a very old problem from microsoft in the time win95, they can not deal with the folder with lang names, so if you want to tell the system about the your JAVA_HOME path with a blank, you have to do: “c:\Progra~1\Java\…” instead of “c:\Program Files\Java\….”. This is windows 8.3 Pathname

So the solution is:

open file: c:\deploy\etc\hadoop\hadoop-env.cmd

change JAVA_HOME=%JAVA_HOME% to JAVA_HOME=”C:\Progra~1\Java\jdk1.8.0_45″

Hadoop installation on windows

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.