windows - 在 Windows 上构建 hadoop 2.6 时出错 - inutils.vcxproj 损坏或无效

标签 windows hadoop build

我正在尝试在 Windows 上构建 Hadoop 2.6,并安装了他们网站上提到的先决条件。我在构建它时遇到以下 fatal error 并且进程停止。有什么建议么。 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 Framework 4。之后,尝试使用以下命令重建:

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

希望对您有所帮助。

关于windows - 在 Windows 上构建 hadoop 2.6 时出错 - inutils.vcxproj 损坏或无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27628379/

相关文章:

c# - 选择什么 .NET 版本以避免安装另一个框架?

android - Creative Ziio 和安卓开发,adb

c - Msys 在 Powershell 中生成 - 没有这样的文件或目录

Hadoop HDFS - 无法为文件提供 +x 权限

python - 如何在python中通过paaver安装模块?

android - 在 Android Studio 和 Gradle 的 Android App Module 中使用不同构建类型的 Library Module

c++ winapi listview项目已选中但未突出显示

c - Windows 进程注入(inject)崩溃

hadoop - 禁用动态映射在ElasticSearch中不起作用

hadoop - 使用 Apache Spark 在 HDFS 中存储多个文件