2017-03-17 39 views
0

在使用maven構建hadoop時,我遇到了一個錯誤,即一個在ant腳本中的命令異常退出。 更多詳情如下錯誤。在構建hadoop時無法執行goal antrun插件

[INFO] Apache Hadoop NFS .................................. SUCCESS [ 2.372 s] 
[INFO] Apache Hadoop KMS .................................. FAILURE [ 5.222 s] 
[INFO] Apache Hadoop Common Project ....................... SKIPPED 
[INFO] Apache Hadoop HDFS ................................. SKIPPED 
[INFO] Apache Hadoop HttpFS ............................... SKIPPED 
[INFO] Apache Hadoop HDFS BookKeeper Journal .............. SKIPPED 
[INFO] Apache Hadoop HDFS-NFS ............................. SKIPPED 
[INFO] Apache Hadoop HDFS Project ......................... SKIPPED 
[INFO] hadoop-yarn ........................................ SKIPPED 
[INFO] hadoop-yarn-api .................................... SKIPPED 
[INFO] hadoop-yarn-common ................................. SKIPPED 
[INFO] hadoop-yarn-server ................................. SKIPPED 
[INFO] hadoop-yarn-server-common .......................... SKIPPED 
[INFO] hadoop-yarn-server-nodemanager ..................... SKIPPED 
[INFO] hadoop-yarn-server-web-proxy ....................... SKIPPED 
[INFO] hadoop-yarn-server-applicationhistoryservice ....... SKIPPED 
[INFO] hadoop-yarn-server-resourcemanager ................. SKIPPED 
[INFO] hadoop-yarn-server-tests ........................... SKIPPED 
[INFO] hadoop-yarn-client ................................. SKIPPED 
[INFO] hadoop-yarn-applications ........................... SKIPPED 
[INFO] hadoop-yarn-applications-distributedshell .......... SKIPPED 
[INFO] hadoop-yarn-applications-unmanaged-am-launcher ..... SKIPPED 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 51.908 s 
[INFO] Finished at: 2017-03-18T00:01:56+08:00 
[INFO] Final Memory: 77M/771M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (dist) on project hadoop-kms: An Ant BuildException has occured: exec returned: 1 
[ERROR] around Ant part ...<exec failonerror="true" dir="/Users/jinteng/work/hadoop-compile/hadoop-2.6.5-src/hadoop-common-project/hadoop-kms/target" executable="sh">... @ 10:142 in /Users/jinteng/work/hadoop-compile/hadoop-2.6.5-src/hadoop-common-project/hadoop-kms/target/antrun/build-main.xml 
[ERROR] -> [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] 
+0

什麼都你試圖解決這個問題?你有沒有完全閱讀製作指南? –

+0

是啊,感謝您的關注,而我只是想在解決此錯誤後分享它 – kross

回答

0

我問這個問題的分享。

背景: 我在下載tomcat的tar包的同時殺死了緩慢網速的構建過程。

由於下載中斷,數據包不完整,tomcat-untar.sh會在嘗試解壓tomcat時發生異常。

後來,我單獨下載包推到下載目錄,發現它的工作原理

相關問題