我正在尝试在Windows上构建Hadoop 2.6并安装其网站上提到的先决条件。我在构建它时遇到以下致命错误,该过程停止了。有什么建议么。 Hadoop 2.5.2构建良好,没有任何问题。

谢谢!

s\winutils.vcxproj" (default target) (4) ->
(Link target) ->
  LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or
 corrupt [C:\Hadoop\hadoop-2.6.0-src\hadoop-common-project\hadoop-common\src\mai
n\winutils\winutils.vcxproj]

    57 Warning(s)
    1 Error(s)

Time Elapsed 00:00:05.67
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Hadoop Main ................................ SUCCESS [0.671s]
[INFO] Apache Hadoop Project POM ......................... SUCCESS [0.577s]
[INFO] Apache Hadoop Annotations ......................... SUCCESS [1.734s]
[INFO] Apache Hadoop Assemblies .......................... SUCCESS [0.124s]
[INFO] Apache Hadoop Project Dist POM .................... SUCCESS [1.498s]
[INFO] Apache Hadoop Maven Plugins ....................... SUCCESS [1.734s]
[INFO] Apache Hadoop MiniKDC ............................. SUCCESS [1.390s]
[INFO] Apache Hadoop Auth ................................ SUCCESS [2.434s]
[INFO] Apache Hadoop Auth Examples ....................... SUCCESS [1.920s]
[INFO] Apache Hadoop Common .............................. FAILURE [13.970s]
................................
................................
................................
................................
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 27.253s
[INFO] Finished at: Tue Dec 23 16:19:50 EST 2014
[INFO] Final Memory: 82M/1045M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:exec (com
pile-ms-winutils) on project hadoop-common: Command execution failed. Process ex
ited with an error: 1(Exit value: 1) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :hadoop-common

最佳答案

您需要删除.NET Framework 4.5并安装.NET Framework4。然后,尝试使用以下命令进行重建:

mvn package -Pdist,native-win -DskipTests -Dtar

希望对您有所帮助。

07-26 09:37
查看更多