Hadoop Installation


6 Answer(s)


What is the error?
Follow the steps again, make sure that you are referencing the correct path and Java is setup correctly.

I have triple checked the paths, I have the following paths in the USER Environment variables:

JAVA_HOME = C:\Program Files (x86)\Java\jdk1.7.0_60
MAVEN_HOME = C:\Program Files (x86)\Apache Software Foundation\apache-maven-3.2.2
M2 = %M2_HOME%\bin
Path = C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\%M2%\%JAVA_HOME%\bin;C:\Program Files (x86)\Apache Software Foundation\apache-maven-3.2.2\bin

The error I get when I run mvn -version in the cmd window is:
'mvn' is not recognized as an internal or external command, operable program or batch.

I am running Windows 8.1. Java runs fine with Net Beans.

hi Faruk,

Looks like the Maven path not is not properly configured in the PATH variable . Another way is you can invoke Maven by providing complete path in command line something like


C:\Program Files (x86)\Apache Software Foundation\apache-maven-3.2.2\bin\mvn

Thanks

Can you see what's wrong in the path variable because I can't. I can't even run by supplying the full:

path C:\Program Files (x86)\Apache Software Foundation\apache-maven-3.2.2\bin\mvn

The only way I can run it is by going into the subdirectory via explorer and double clicking the mvn.bat file

or using the cmd window and going to the directory:

C:\Program Files (x86)\Apache Software Foundation\apache-maven-3.2.2\bin\

and typing in mvn -version there.

sometimes Spaces can also be an issue..try to put mvn in such a path that there are no spaces in the directory names (Instead of Apache Software put Apache_Software)

Rama is correct, Try another name to the folder/file, "BigData", "Hadoop" etc, another possible solution to diagnose the issues, try to replicate in another user profile or another machine to see if the same happens.