2017-02-01 46 views
3

我與星火安裝Apache齊柏林同時,當運行maven的安裝我得到下面的錯誤命令Zeppelin: web Application構建失敗,同時建立了Apache齊柏林

[ERROR] error Command failed with exit code 1. 
[INFO] ------------------------------------------------------------------------ 
[INFO] Reactor Summary: 
[INFO] 
[INFO] Zeppelin ........................................... SUCCESS [ 50.394 s] 
[INFO] Zeppelin: Interpreter .............................. SUCCESS [ 31.632 s] 
[INFO] Zeppelin: Zengine .................................. SUCCESS [ 24.134 s] 
[INFO] Zeppelin: Display system apis ...................... SUCCESS [ 19.607 s] 
[INFO] Zeppelin: Spark dependencies ....................... SUCCESS [01:33 min] 
[INFO] Zeppelin: Spark .................................... SUCCESS [ 29.058 s] 
[INFO] Zeppelin: Markdown interpreter ..................... SUCCESS [ 5.796 s] 
[INFO] Zeppelin: Angular interpreter ...................... SUCCESS [ 4.361 s] 
[INFO] Zeppelin: Shell interpreter ........................ SUCCESS [ 4.827 s] 
[INFO] Zeppelin: Livy interpreter ......................... SUCCESS [ 50.227 s] 
[INFO] Zeppelin: HBase interpreter ........................ SUCCESS [ 11.682 s] 
[INFO] Zeppelin: Apache Pig Interpreter ................... SUCCESS [ 10.991 s] 
[INFO] Zeppelin: PostgreSQL interpreter ................... SUCCESS [ 5.541 s] 
[INFO] Zeppelin: JDBC interpreter ......................... SUCCESS [ 6.663 s] 
[INFO] Zeppelin: File System Interpreters ................. SUCCESS [ 6.304 s] 
[INFO] Zeppelin: Flink .................................... SUCCESS [ 13.449 s] 
[INFO] Zeppelin: Apache Ignite interpreter ................ SUCCESS [ 5.955 s] 
[INFO] Zeppelin: Kylin interpreter ........................ SUCCESS [ 4.915 s] 
[INFO] Zeppelin: Python interpreter ....................... SUCCESS [ 6.109 s] 
[INFO] Zeppelin: Lens interpreter ......................... SUCCESS [ 11.360 s] 
[INFO] Zeppelin: Apache Cassandra interpreter ............. SUCCESS [ 58.287 s] 
[INFO] Zeppelin: Elasticsearch interpreter ................ SUCCESS [ 9.617 s] 
[INFO] Zeppelin: BigQuery interpreter ..................... SUCCESS [ 5.584 s] 
[INFO] Zeppelin: Alluxio interpreter ...................... SUCCESS [ 9.001 s] 
[INFO] Zeppelin: Scio ..................................... SUCCESS [ 48.425 s] 
[INFO] Zeppelin: web Application .......................... FAILURE [28:26 min] 
[INFO] Zeppelin: Server ................................... SKIPPED 
[INFO] Zeppelin: Packaging distribution ................... SKIPPED 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 37:14 min 
[INFO] Finished at: 2017-02-01T16:21:39+05:30 
[INFO] Final Memory: 224M/1792M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.3:yar 
n (yarn install) on project zeppelin-web: Failed to run task: 'yarn install --no 
-lockfile --https-proxy=http://sg0227823:***@tulsa-proxy.sabre.com:80 --proxy=ht 
tp://sg0227823:***@tulsa-proxy.sabre.com:80' failed. (error code 1) -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit 
ch. 
[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 rea 
d the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc 
eption 
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command 

[ERROR] mvn <goals> -rf :zeppelin-web 
+1

似乎maven-frontend-plugin無法執行npm腳本,導致插件嘗試使用本地nodejs而不是僅安裝一個。 您可以使用[nvm](https://github.com/creationix/nvm)安裝nodejs 6.9.1+並重試嗎? – 1ambda

+1

如果你想更詳細的日誌,你可以添加'-X'選項到你的maven命令,如'mvn -X ...' – 1ambda

+1

FYI - https://github.com/apache/zeppelin/pull/2016 – 1ambda

回答

0

由於@lambda在評論中提到,它是固定的他的PR-2016 github.com/apache/zeppelin/pull/2016,但似乎問題出現在最新版本的Zeppelin中。

我解決了這個通過安裝全系統NPM和的NodeJS:

$ sudo yum install nodejs npm 

(如果你使用RHEL的通知,這兩個軟件包只能通過非默認EPEL yum軟件庫https://fedoraproject.org/wiki/EPEL可用)。

但後來我得到了 「不支持節點版本0.10.48,請使用Node.js 4.0或更高版本。」當手動運行'yarn install --no-lockfile'時(不要將Hadoop的yarn命令與yarn命令 - https://yarnpkg.com/en/混淆,nodejs使用該命令)。這又通過安裝最新的穩定節點來解決.js

$ sudo npm install n -g 
$ sudo n stable 

ps。由於maven剛剛吐出'錯誤代碼1',所以很難診斷yarn命令的錯誤,但您可以通過手動運行相同的命令進行調試,例如,./zeppelin-web/node/yarn/dist/bin/yarn install --no-lock(假設您位於zeppelin代碼庫的根目錄)。所以你會得到確切問題的輸出。