在 Windows 上构建 Hadoop 错误:Ant BuildException [英] Building Hadoop on Windows Error: Ant BuildException

查看:37
本文介绍了在 Windows 上构建 Hadoop 错误:Ant BuildException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试通过运行使用 Maven 3.2.2 在 Windows Server 2012 上构建 Hadoop 2.4.1

Trying to build Hadoop 2.4.1 on Windows Server 2012 using Maven 3.2.2 by running

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

目前出现以下错误:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:
run (pre-dist) on project hadoop-project-dist: An Ant BuildException has occured
: Execute failed: java.io.IOException: Cannot run program "sh" (in directory "C:
\Hadoop\hadoop-2.4.1-src\hadoop-project-dist\target"): CreateProcess error=2, Th
e system cannot find the file specified
[ERROR] around Ant part ...<exec failonerror="true" dir="C:\Hadoop\hadoop-2.4.1-
src\hadoop-project-dist\target" executable="sh">... @ 31:104 in C:\Hadoop\hadoop
-2.4.1-src\hadoop-project-dist\target\antrun\build-main.xml

我已经处理了描述的 Java doclint 问题 这里.这是一个类似的问题吗(即我必须在 Ant 配置中添加一些东西)?

I've already dealt with the Java doclint issue described here. Is this a similar issue (i.e. I have to add something to the Ant configuration)?

推荐答案

您必须将 Cygwin 添加到路径.

You must add Cygwin to the path.

阅读这篇文章,了解如何这样做.

Read this article to know how to do that.

这篇关于在 Windows 上构建 Hadoop 错误:Ant BuildException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆