- JDK 1.6
- Maven 3.1.1
- Windows 7
Step 1: Install Java if not already installed
Install Java and add/update the JAVE_HOME variable
Step 2: Download Maven
Choose a version and download apache-maven-*-bin.zip file from here
Step 3: Extract It
Extract the downloaded zip file into desired location.
Step 4: Add MAVEN_HOME
Now, set the MAVEN_HOME variable just as you did for JAVA_HOME variable.
Step 5: Update Path variable
Append up to bin folder path in variable value, so that you can run the Maven’s command everywhere.
Step 6: Verify installation
Open command prompt. Type mvn –version in command prompt and hit enter.
If you see similar output as above, means your Apache Maven is installed successfully J
org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot create directory /user/...../test. Name node is in safe mode.
In order to forcefully let the namenode leave safemode, following command should be executed:
$ bin/hadoop dfsadmin -safemode leave
-safemode isn’t a sub-command for hadoop fs, but it is of hadoop dfsadmin.
Run following command so that any inconsistencies in the hdfs might be sorted out.
$ hadoop fsck