2016-11-28 79 views
0

我的hadoop已經安裝了cloudera。我想安裝zeppelin來連接配置單元併爲我的查詢構建UI。雖然建設有以下命令飛艇命令:構建Apache Zeppelin時出錯提示

sudo mvn clean package -Pspark-1.3 -Dspark.version=1.3.0 -Dhadoop.version=2.6.0-cdh5.4.7 -Phadoop-2.6 -Pyarn -DskipTests 

我在web應用模塊收到此錯誤:

[ERROR] npm ERR! Linux 3.19.0-71-generic 
[ERROR] npm ERR! argv "/home/zeppelin/incubator-zeppelin/zeppelin-web/node/node" "/home/zeppelin/incubator-zeppelin/zeppelin-web/node/node_modules/npm/bin/npm-cli.js" "run" "build" 
[ERROR] npm ERR! node v4.6.2 
[ERROR] npm ERR! npm v3.10.9 
[ERROR] npm ERR! code ELIFECYCLE 
[ERROR] npm ERR! [email protected] build: `grunt build` 
[ERROR] npm ERR! Exit status 3 
[ERROR] npm ERR! 
[ERROR] npm ERR! Failed at the [email protected] build script 'grunt build'. 
[ERROR] npm ERR! Make sure you have the latest version of node.js and npm installed. 
[ERROR] npm ERR! If you do, this is most likely a problem with the zeppelin-web package, 
[ERROR] npm ERR! not with npm itself. 
[ERROR] npm ERR! Tell the author that this fails on your system: 
[ERROR] npm ERR!  grunt build 
[ERROR] npm ERR! You can get information on how to open an issue for this project with: 
[ERROR] npm ERR!  npm bugs zeppelin-web 
[ERROR] npm ERR! Or if that isn't available, you can get their info via: 
[ERROR] npm ERR!  npm owner ls zeppelin-web 
[ERROR] npm ERR! There is likely additional logging output above. 
[ERROR] 
[ERROR] npm ERR! Please include the following file with any support request: 
[ERROR] npm ERR!  /home/zeppelin/incubator-zeppelin/zeppelin-web/npm-debug.log 
[INFO] ------------------------------------------------------------------------ 
[INFO] Reactor Summary: 
[INFO] 
[INFO] Zeppelin ........................................... SUCCESS [ 2.527 s] 
[INFO] Zeppelin: Interpreter .............................. SUCCESS [ 6.355 s] 
[INFO] Zeppelin: Zengine .................................. SUCCESS [ 3.253 s] 
[INFO] Zeppelin: Display system apis ...................... SUCCESS [ 9.241 s] 
[INFO] Zeppelin: Spark dependencies ....................... SUCCESS [ 16.473 s] 
[INFO] Zeppelin: Spark .................................... SUCCESS [ 13.479 s] 
[INFO] Zeppelin: Markdown interpreter ..................... SUCCESS [ 0.270 s] 
[INFO] Zeppelin: Angular interpreter ...................... SUCCESS [ 0.162 s] 
[INFO] Zeppelin: Shell interpreter ........................ SUCCESS [ 0.211 s] 
[INFO] Zeppelin: Livy interpreter ......................... SUCCESS [ 2.485 s] 
[INFO] Zeppelin: HBase interpreter ........................ SUCCESS [ 1.742 s] 
[INFO] Zeppelin: Apache Pig Interpreter ................... SUCCESS [ 1.367 s] 
[INFO] Zeppelin: PostgreSQL interpreter ................... SUCCESS [ 0.294 s] 
[INFO] Zeppelin: JDBC interpreter ......................... SUCCESS [ 0.565 s] 
[INFO] Zeppelin: File System Interpreters ................. SUCCESS [ 0.514 s] 
[INFO] Zeppelin: Flink .................................... SUCCESS [ 3.358 s] 
[INFO] Zeppelin: Apache Ignite interpreter ................ SUCCESS [ 0.367 s] 
[INFO] Zeppelin: Kylin interpreter ........................ SUCCESS [ 0.218 s] 
[INFO] Zeppelin: Python interpreter ....................... SUCCESS [ 0.252 s] 
[INFO] Zeppelin: Lens interpreter ......................... SUCCESS [ 1.496 s] 
[INFO] Zeppelin: Apache Cassandra interpreter ............. SUCCESS [ 29.842 s] 
[INFO] Zeppelin: Elasticsearch interpreter ................ SUCCESS [ 1.322 s] 
[INFO] Zeppelin: BigQuery interpreter ..................... SUCCESS [ 0.389 s] 
[INFO] Zeppelin: Alluxio interpreter ...................... SUCCESS [ 1.106 s] 
[INFO] Zeppelin: Scio ..................................... SUCCESS [ 23.182 s] 
[INFO] Zeppelin: web Application .......................... FAILURE [ 8.124 s] 
[INFO] Zeppelin: Server ................................... SKIPPED 
[INFO] Zeppelin: Packaging distribution ................... SKIPPED 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 02:09 min 
[INFO] Finished at: 2016-11-28T18:16:15-05:00 
[INFO] Final Memory: 524M/2992M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.3:npm (npm build) on project zeppelin-web: Failed to run task: 'npm run build' failed. (error code 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/MojoFailureException 
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command 
[ERROR] mvn <goals> -rf :zeppelin-web 

幾個版本我安裝:

Hadoop 2.6.0-cdh5.4.7 
java version "1.7.0_111" 
Hive 1.1.0-cdh5.4.7 
git version 1.9.1 
nodejs - v7.2.0 
npm - 3.10.9 
Apache Maven 3.3.9 
Spark 1.3.0 

我試着很多方法來解決這個問題,但沒有運氣。任何人都可以讓我出來解決這個問題,併成功地運行構建。我非常感謝你的回覆和時間。

編輯

我NPM安裝在飛艇上的Web,給出以下的輸出:

npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue 
npm WARN deprecated [email protected]: the module is now available as 'css-select' 
npm WARN deprecated [email protected]: the module is now available as 'css-what' 
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue 
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to [email protected]^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree. 
npm WARN deprecated [email protected]: use uuid module instead 
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue 
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to [email protected]^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree. 
npm WARN prefer global [email protected] should be installed with -g 
npm WARN prefer global [email protected] should be installed with -g 
npm WARN lifecycle [email protected]~postinstall: cannot run in wd %s %s (wd=%s) [email protected] bower install --silent /home/zeppelin/incubator-zeppelin/zeppelin-web 
[email protected] /home/zeppelin/incubator-zeppelin/zeppelin-web 

我這裏沒有複製的樹,因爲它太長複製到這裏。謝謝。

+0

孵化器 - 齊柏林?爲什麼你不使用最新版本的Zeppelin和Spark? –

+0

你是什麼意思?我必須用我目前的hadoop安裝它。 – DharaPPatel

+0

孵化器 - 齊柏林飛艇應在0.5.6之前,現在齊柏林飛艇在0.6.2。 Spark 1.4也很舊,最新版本是2.0.2。 –

回答

2

問題在於這樣一個事實:飛艇構建已更新至v0.6.2 請加上這個,你克隆你的孵化後:

  1. 混帳克隆https://github.com/apache/incubator-zeppelin.git
  2. CD孵化器,飛艇
  3. git的結帳c928f9a46ecacebc868d6dc10a95c02f9018a18e
  4. CD ../

Maven將使用齊柏林版本0.6.1,它應該完成沒有任何錯誤。

+0

我在哪個目錄的路徑做git克隆? – DharaPPatel

+0

如果您使用飛馬,修改的文件是: pegasus/install/zeppelin/install_zeppelin.sh – Jarek

+0

感謝他爲我工作。我明天有介紹,你救了我。感謝您的迴應。 – DharaPPatel

0

每當我遇到關於web應用程序的失敗時,我都會按照程序進行操作。

  1. cd zeppelin-web DIR
  2. 刪除node_modules DIR
  3. npm install

,如果你想與CDH建立齊柏林,你應該在你的build命令添加-Pvendor-repo選項。

你可以看到here

希望這有助於一些生成命令的例子。

+0

感謝您的回覆。我試過這個,它仍然給我同樣的錯誤。我執行了與CDH鏈接中提到的相同的命令,但沒有運氣。我如何以其他方式排除故障?感謝您的回覆。 – DharaPPatel

+0

你能在'npm install'之前刪除'zeppelin-web/bower_components /'嗎? –

+0

我沒有在zeppelin-web中找到bower_components! – DharaPPatel