构建Apache Zeppelin时出错 [英] Getting error while building the Apache Zeppelin

查看:114
本文介绍了构建Apache Zeppelin时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经用cloudera设置了我的hadoop.我想安装Zeppelin与蜂巢连接,并为我的查询构建UI.使用以下命令构建zeppelin命令时:

I have my hadoop already setup with cloudera. I wanted to install zeppelin to connect with hive and build the UI for my queries. While building the zeppelin command with the following command:

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应用程序模块上收到此错误:

I get this error at the web-application module :

[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! zeppelin-web@0.0.0 build: `grunt build`
[ERROR] npm ERR! Exit status 3
[ERROR] npm ERR!
[ERROR] npm ERR! Failed at the zeppelin-web@0.0.0 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

我的装置上有多个版本:

Several Versions on my installations :

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

我尝试了很多方法来解决此问题,但是没有运气.谁能让我解决这个问题并成功运行构建.非常感谢您的回复和宝贵的时间.

I tried lot of ways to solve this issues but no luck. Can anybody please let me out to solve this issue and run the build successfully. I really appreciate your responses and time.

修改

我在zeppelin-web中安装npm时,输出如下:

my npm install in zeppelin-web gives below output:

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

我没有在这里复制树,因为在这里复制太长了.谢谢.

I haven't copied the tree here because it's too long to copy here. Thanks.

推荐答案

问题在于,齐柏林飞艇的版本已更新至v0.6.2 克隆孵化器后,请添加以下内容:

Problem lies in the fact that zeppelin build has been updated to v0.6.2 Please add this after you clone your incubator:

  1. git clone https://github.com/apache/incubator-zeppelin.git
  2. cd孵化器-齐柏林飞艇
  3. git checkout c928f9a46ecacebc868d6dc10a95c02f9018a18e
  4. cd ../
  1. git clone https://github.com/apache/incubator-zeppelin.git
  2. cd incubator-zeppelin
  3. git checkout c928f9a46ecacebc868d6dc10a95c02f9018a18e
  4. cd ../

Maven将使用Zeppelin build 0.6.1,它应该完成而不会出现任何错误.

Maven will use zeppelin build 0.6.1 and it should finish without any error.

这篇关于构建Apache Zeppelin时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆