apache-tez构建失败

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

我正在尝试使用下面的命令在windows中为hadoop-2.6.0构建apachetez(0.6.1和0.7.0版本)

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

但我正在变得异常

  1. [INFO]
  2. [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
  3. [INFO] ------------------------------------------------------------------------
  4. [INFO] Reactor Summary:
  5. [INFO]
  6. [INFO] tez ................................................ SUCCESS [ 0.924 s]
  7. [INFO] tez-api ............................................ SUCCESS [ 11.585 s]
  8. [INFO] tez-common ......................................... SUCCESS [ 1.421 s]
  9. [INFO] tez-runtime-internals .............................. SUCCESS [ 2.029 s]
  10. [INFO] tez-runtime-library ................................ SUCCESS [ 4.751 s]
  11. [INFO] tez-mapreduce ...................................... SUCCESS [ 2.553 s]
  12. [INFO] tez-examples ....................................... SUCCESS [ 0.862 s]
  13. [INFO] tez-dag ............................................ SUCCESS [ 8.363 s]
  14. [INFO] tez-tests .......................................... SUCCESS [ 2.044 s]
  15. [INFO] tez-ui ............................................. FAILURE [ 3.105 s]
  16. [INFO] tez-plugins ........................................ SKIPPED
  17. [INFO] tez-yarn-timeline-history .......................... SKIPPED
  18. [INFO] tez-yarn-timeline-history-with-acls ................ SKIPPED
  19. [INFO] tez-mbeans-resource-calculator ..................... SKIPPED
  20. [INFO] tez-tools .......................................... SKIPPED
  21. [INFO] tez-dist ........................................... SKIPPED
  22. [INFO] Tez ................................................ SKIPPED
  23. [INFO] ------------------------------------------------------------------------
  24. [INFO] BUILD FAILURE
  25. [INFO] ------------------------------------------------------------------------
  26. [INFO] Total time: 38.169 s
  27. [INFO] Finished at: 2015-07-13T15:07:23+05:30
  28. [INFO] Final Memory: 76M/1049M
  29. [INFO] ------------------------------------------------------------------------
  30. [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]
  31. [ERROR]
  32. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  33. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  34. [ERROR]
  35. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  36. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  37. [ERROR]
  38. [ERROR] After correcting the problems, you can resume the build with the command
  39. [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。我的案子就是这样。

相关问题