windows - Windows上的Hadoop构建错误

标签 windows hadoop hadoop2 building

我已经在计算机上安装了hadoop,删除了源文件夹,并希望重新安装。但是我在这个错误失败:

[INFO] Apache Hadoop KMS .................................. FAILURE [  8.050 s]

我尝试了所有可以在互联网上找到的内容,但错误仍然存​​在。

错误:
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 09:50 min
[INFO] Finished at: 2016-07-27T14:57:47+02:00
[INFO] Final Memory: 97M/1061M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:
run (dist) on project hadoop-kms: An Ant BuildException has occured: exec return
ed: 2
[ERROR] around Ant part ...<exec dir="C:\Users\yzi1\hadoop-2.7.1-src\hadoop-comm
on-project\hadoop-kms\target" executable="sh" failonerror="true">... @ 10:121 in
 C:\Users\yzi1\hadoop-2.7.1-src\hadoop-common-project\hadoop-kms\target\antrun\b
uild-main.xml
[ERROR] -> [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-kms

帮助

我不知道该怎么办,我觉得我尝试了一切。请帮助我解决此错误。

最佳答案

我曾尝试在Windows系统上运行Hadoop,但我的解决方案始终是使用Linux VM。就您而言,我认为 Ant 在您的系统上找不到sh。
如果您确实需要在Windows上构建Hadoop,则可以在这里http://wiki.apache.org/hadoop/Hadoop2OnWindows
但是,Windows上的Hadoop同样令人痛苦,并且仅部分支持。

关于windows - Windows上的Hadoop构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38613967/

相关文章:

c# - 在具有 TLS 安全性的 .Net 中映射网络驱动器

c# - Windows 8 应用程序本地存储

windows - Windows中缺少Hadoop安装

java - 使用 Windows 10 和命令行启动 Hadoop 2.7.1 : ERROR the system cannot find the file hadoop

hadoop - 如何在MapReduce中配置组合器的数量?

windows - 如何分析Windows 7 bsod error minidump?

windows - 为什么 Windows 64 选择要求保存/恢复 xmm6 和 xmm7?

hadoop - Hadoop DFSClient安装

hadoop - 删除 hadoop info streaming.PipeMapRed 和其他

hadoop - 为Hive中的表中新添加的记录更新唯一ID列