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.
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.
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.
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)'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With