gpt4 book ai didi

visual-studio-2010 - Hadoop-2.6.0 构建失败

转载 作者:可可西里 更新时间:2023-11-01 16:13:05 37 4
gpt4 key购买 nike

Windows 中的 Hadoop 2.6.0 构建失败。但是Hadoop-2.5.0构建成功。我正在使用 visual studio 2010 命令提示符构建源代码。

构建失败

[INFO] Apache Hadoop Common ............................... SUCCESS [03:18 min]
[INFO] Apache Hadoop NFS .................................. SUCCESS [ 15.649 s]
[INFO] Apache Hadoop KMS .................................. SUCCESS [ 29.325 s]
[INFO] Apache Hadoop Common Project ....................... SUCCESS [ 0.031 s]
[INFO] Apache Hadoop HDFS ................................. FAILURE [ 31.917 s]
[INFO] Apache Hadoop HttpFS ............................... SKIPPED
[INFO] Apache Hadoop HDFS BookKeeper Journal .............. SKIPPED

错误

 [exec] (Link target) ->
[exec] jni_helper.obj : error LNK2019: unresolved external symbol __imp_JNI_CreateJavaVM referenced in function getGlobalJNIEnv [K:\Hadoop-2.6.0\hadoop-2.6.0-src\hadoop-hdfs-project\hadoop-hdfs\target\native\hdfs.vcxproj]
[exec] jni_helper.obj : error LNK2019: unresolved external symbol __imp_JNI_GetCreatedJavaVMs referenced in function getGlobalJNIEnv [K:Hadoop-2.6.0\hadoop-2.6.0-src\hadoop-hdfs-project\hadoop-hdfs\target\native\hdfs.vcxproj]

异常

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run
(make) on project hadoop-hdfs: An Ant BuildException has occured: exec returned: 1
[ERROR] around Ant part ...<exec dir="K:\Hadoop-2.6.0\hadoop-2.6.0-src\hadoop
hdfs-project\hadoop-hdfs\target/native" executable="msbuild" failonerror="true">... @
8:140 in K:\Hadoop-2.6.0\hadoop-2.6.0-src\hadoop-hdfs-project\hadoop-hdfs\targe
\antrun\build-main.xml
[ERROR] -> [Help 1]

最佳答案

我建议你在linux evn上构建hadoop,然后你可以将dest文件复制到windows。我已经构建了 hadoop2.2。这里是 download link 64bit

关于visual-studio-2010 - Hadoop-2.6.0 构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27271318/

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