在windows上构建hadoop错误:ant buildexception

2ledvvac  于 2021-06-04  发布在  Hadoop
关注(0)|答案(1)|浏览(543)

尝试在windows server 2012上使用maven 3.2.2通过运行

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

我已经处理了这里描述的javadoclint问题。这是一个类似的问题吗(即,我必须向ant配置添加一些东西)?

nxagd54h

nxagd54h1#

必须将cygwin添加到路径中。
阅读本文了解如何做到这一点。

相关问题