Java – Hadoop build fails on Windows 7, Maven 3.1.1, Jdk 1.7.0_45 (Hadoop src 2.2.0)

Hadoop build fails on Windows 7, Maven 3.1.1, Jdk 1.7.0_45 (Hadoop src 2.2.0)… here is a solution to the problem.

Hadoop build fails on Windows 7, Maven 3.1.1, Jdk 1.7.0_45 (Hadoop src 2.2.0)

Although I’m running
Ms-SDK 7.1 Admin Mode Command Prompt, I get hadoop.dll access denied error causing the hadoop build to fail.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.8
.1:jar (module-javadocs) on project hadoop-common: ArchiverException: Error whil
e creating archive: Problem creating jar: C:\hdfs\hadoop-common-project\hadoop-c
ommon\target\hadoop-common-2.2.0\bin\hadoop.dll (Access is denied) 

I

thought it might be an issue with the JDK version, so I uninstalled jdk 1.7. and installed jdk1.6.0_45 but I’m still getting permission errors.

Can I simply avoid the hadoop-common module and install others?

Solution

I just got the same error.

I worked around this by adding security permissions to each parent folder in the file and path, back to the root hadoop folder.

Just right-click on the folder/file you want to grant permissions to and go to Properties. Then click the Security tab. Next, select the logged-in user and check the box labeled Full Control. Click Apply.

Related Problems and Solutions