gpt4 book ai didi

windows - Windows中通过Maven构建的Hadoop不断失败

转载 作者:行者123 更新时间:2023-12-02 21:36:30 36 4
gpt4 key购买 nike

我打算在Windows环境中开发Hadoop,因此
我首先开始如下安装。

  • cygwin,cmake,maven, Protocol Buffer 2.5,Windows SDK v7.1

  • 然后我将变量设置如下。
  • M2_HOME = D:\ java \ apache-maven-3.2.1
  • Platform = Win32

  • 我在路径中添加了 C:\cygwin\bin;%M2_HOME%\bin;D:\java\protoc-2.5.0-win32;
    并输入Hadoop根目录并运行 - mvn package -Pdist,native-win -DskipTests -Dtar从Windows SDK 7.1命令提示符

    (omitted) [INFO] Apache Hadoop Common .............................FAILURE [ 32.778 s] (omitted) [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.3.1:exec (complie-ms-winutils) on project hadoop-common: Command execution faild. Process exited with an error: 1 (Exit value: 1) -> [Help 1] (omitted)



    完整的日志网址: http://pastebin.com/WAYezZmv

    这样的错误不断发生,导致建筑连续失败。
    如果有人可以帮助您找到问题的解决方案,您的见解将不胜感激!
    谢谢!!

    最佳答案

    在Hadoop中这不是问题。但是我找到了根本原因,以便您自己解决问题。

    在检查日志时,问题是由于带有.Net Framework 4.5的Windows SDK v7.1

    异​​常

    "D:\hdc\hadoop-common-project\hadoop-common\target\bin\libwinutils.lib" libwinutils.lib(libwinutils.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
    Generating code
    Finished generating code
    LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt [D:\hdc\hadoop-common-project\hadoop-common\src\main\winutils\winutils.vcxproj]
    "D:\hdc\hadoop-common-project\hadoop-common\src\main\winutils\winutils.vcxproj" 프로젝트를 빌드했습니다(기본 대상). - 실패
    "D:\hdc\hadoop-common-project\hadoop-common\src\main\winutils\winutils.vcxproj.metaproj" 프로젝트를 빌드했습니다(기본 대상). - 실패
    "D:\hdc\hadoop-common-project\hadoop-common\src\main\winutils\winutils.sln" 프로젝트를 빌드했습니다(기본 대상). - 실패

    实际的异常(exception)是
    fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
    您可以在Google上找到解决方案。当我搜索时,在下面粘贴了此问题的一些链接

    LNK1123 Error
    LNK1123
    Error 'LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt' after installing Visual Studio 2012 Release Preview
    Failure during conversion to COFF: file invalid or corrupt

    关于windows - Windows中通过Maven构建的Hadoop不断失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31849955/

    36 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com