apache-tez构建失败

ctehm74n  于 2021-05-29  发布在  Hadoop
关注(0)|答案(5)|浏览(596)

我正在尝试使用下面的命令在windows中为hadoop-2.6.0构建apachetez(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

如何解决这个问题?

ax6ht2ek

ax6ht2ek1#

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

vwkv1x7d

vwkv1x7d2#

看看这个。。。这也许对你有帮助。原因:您正在以超级用户权限或根用户身份运行。
解决:
建议:在没有超级用户权限的情况下运行,或作为非根用户运行。
备选方法:如果您想继续作为root用户,请在tez ui/pom.xml中的exec maven插件的arguments标记中添加--allow root。
谢谢您。

blpfk2vs

blpfk2vs3#

就像hadoop用户建议的那样,我会首先检查这个网站并尝试所有的修复,但有一点需要注意:在第三个修复中(清除文件夹节点\tmp)-如果找不到该文件夹,请尝试清除以下文件夹:$tez\u path/tez-x.y.z/tez ui/src/main/webapp/node\u modules/
我试过删除那个文件夹一次,我试过其他的一切,然后它的工作。

z31licg0

z31licg04#

根据错误,似乎需要安装git:
enogit git未安装或不在路径中
此外,这可能对其他错误有帮助:https://cwiki.apache.org/confluence/display/tez/build+errors+and+solutions

bnl4lu3b

bnl4lu3b5#

安装git、node和npn。我的案子就是这样。

相关问题