2015-07-13 101 views
1

我尝试使用以下命令阿帕奇TEZ构建失败

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

打造阿帕奇TEZ(无论0.6.1和0.7.0版本)的Hadoop-2.6.0的Windows,但我得到异常

下方
[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 

如何解决这个问题?

回答

3

基于错误,好像你需要安装的git:

ENOGIT Git是不是在PATH

还安装与否,这可能是其他错误有所帮助:https://cwiki.apache.org/confluence/display/TEZ/Build+errors+and+solutions

+0

我已经建立它没有超级用户权限通过关注该链接。有效。谢谢。 – Kumar

+0

我使用'sudo apt-get install git'安装了git,然后它在我无需超级用户权限的情况下构建它。 –

0

等中提出hadoop_user,我会首先检查这个website,并尝试所有修补程序但有一个备注:在第三个定位点(清除文件夹node_tmp) - 如果你不能找到该文件夹​​尝试清除以下文件夹:$ TEZ_PATH/tez-X.Y.Z/tez-ui/src/main/webapp/node_modules/

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

1

一旦看到这...这可能会帮助你。 原因:您以超级用户身份或超级用户权限运行。

推荐:未经超级用户权限运行,或作为非根用户。

Alternate如果您想继续以root身份将-allow-root添加到tez-ui/pom.xml中exec-maven-plugin的参数标记中,

谢谢。

+0

谢谢。我没有超级用户权限。 – Kumar

0

安装git,节点& npn。这工作在我的情况。

0

安装git,node和npm也适用于我。在安装所有三者之前,尝试运行mvn包-DskipTests.This的作品。