Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hadoop installation on windows

Tags:

After extracting hadoop in my C drive I tried to execute the hadoop version command and getting below error. JAVA_HOME is set correctly in my environment variable. Can anybody help on that error ?

C:\>hadoop version   The system cannot find the path specified. Error: JAVA_HOME is incorrectly set. Please update C:\hadoop-2.5.1\conf\hadoop-env.cmd '-Xmx512m' is not recognized as an internal or external command, ooperable program or batch file. 
like image 720
user3471380 Avatar asked Nov 18 '14 08:11

user3471380


People also ask

How do you install and run Hadoop on Windows for Beginners?

Setup System Environment VariablesCreate a new user variable. Put the Variable_name as HADOOP_HOME and Variable_value as the path of the bin folder where you extracted hadoop. Likewise, create a new user variable with variable name as JAVA_HOME and variable value as the path of the bin folder in the Java directory.

Can I run Hadoop on my laptop?

You can install Hadoop in your system as well which would be a feasible way to learn Hadoop. We will be installing single node pseudo-distributed hadoop cluster on windows 10. Prerequisite: To install Hadoop, you should have Java version 1.8 in your system. Download the file according to your operating system.


1 Answers

Most of the answers suggest to copy the JDK installation path. However, if you are not comfortable doing it, you can use the Windows short path to set the path name so that all applications can access the path without any hassles.

Notion to set env variable if it contains white spaces:

Progra~1 = 'Program Files' Progra~2 = 'Program Files(x86)' 
like image 101
dmachop Avatar answered Sep 18 '22 04:09

dmachop