3

我正在尝试使用以下命令在 Windows 中为 hadoop-2.6.0 构建 Apache Tez(0.6.1 和 0.7.0 版本)

mvn clean package -Dhadoop.version=2.6.0 -DskipTests -Dmaven.javadoc.skip

但我得到了例外

[INFO]
[INFO] --- exec-maven-plugin:1.3.2:exec (Bower install) @ tez-ui ---bower FileSaver.js#24b303f49213b905ec9062b708f7cd43d56a5dde           ENOGIT git is not installed or not in the PATH
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] tez ................................................ SUCCESS [  0.924 s]
[INFO] tez-api ............................................ SUCCESS [ 11.585 s]
[INFO] tez-common ......................................... SUCCESS [  1.421 s]
[INFO] tez-runtime-internals .............................. SUCCESS [  2.029 s]
[INFO] tez-runtime-library ................................ SUCCESS [  4.751 s]
[INFO] tez-mapreduce ...................................... SUCCESS [  2.553 s]
[INFO] tez-examples ....................................... SUCCESS [  0.862 s]
[INFO] tez-dag ............................................ SUCCESS [  8.363 s]
[INFO] tez-tests .......................................... SUCCESS [  2.044 s]
[INFO] tez-ui ............................................. FAILURE [  3.105 s]
[INFO] tez-plugins ........................................ SKIPPED
[INFO] tez-yarn-timeline-history .......................... SKIPPED
[INFO] tez-yarn-timeline-history-with-acls ................ SKIPPED
[INFO] tez-mbeans-resource-calculator ..................... SKIPPED
[INFO] tez-tools .......................................... SKIPPED
[INFO] tez-dist ........................................... SKIPPED
[INFO] Tez ................................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 38.169 s
[INFO] Finished at: 2015-07-13T15:07:23+05:30
[INFO] Final Memory: 76M/1049M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.3.2:exec (Bower install) on project tez-ui: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :tez-ui

如何解决这个问题?

4

5 回答 5

3

根据错误,您似乎需要安装 git:

ENOGIT git 未安装或不在 PATH 中

此外,这可能有助于解决其他错误:https ://cwiki.apache.org/confluence/display/TEZ/Build+errors+and+solutions

于 2015-07-18T17:30:36.243 回答
1

一旦看看这个......这可能会对你有所帮助。 原因:您以 root 或超级用户权限运行。

解决方案

推荐:在没有超级用户权限的情况下运行,或者以非 root 用户身份运行。

替代:如果您想以 root 身份继续,请将 --allow-root 添加到 tez-ui/pom.xml 中 exec-maven-plugin 的 arguments 标记。

谢谢你。

于 2016-01-28T16:47:15.870 回答
0

就像 hadoop_user 建议的那样,我会首先检查这个网站并尝试所有修复,但要注意一点:在第三次修复(清除文件夹 node_tmp)中 - 如果找不到该文件夹​​,请尝试清除以下文件夹:$TEZ_PATH/tez-XYZ/tez- ui/src/main/webapp/node_modules/

一旦我尝试了其他所有方法,我就尝试删除该文件夹,然后它就起作用了。

于 2015-12-29T23:05:55.610 回答
0

安装 git、node 和 npn。这在我的情况下有效。

于 2016-05-30T10:24:19.037 回答
0

安装 git、node 和 npm 也对我有用。在构建之前安装所有三个并尝试运行 mvn 包 -DskipTests。这有效。

于 2016-07-27T17:48:40.177 回答