Zeppelin:web在build立齐柏林时应用程序失败

我正在尝试使用本教程中的说明构buildapache zeppelin: 安装zeppelig教程

我安装了spark 2.0和maven 3.3.9最新版本。 我用下面的命令来build立zeppelin:

sudo mvn clean package -DskipTests -Psparkr -Ppyspark -Pspark-2.0 -Dflink 

我得到这个错误:

 [ERROR] npm WARN unmet dependency /home/parallels/incubator-zeppelin /zeppelin-web/node_modules/grunt-jscs/node_modules/jscs requires lodash@'~3.10.0' but will load [ERROR] npm WARN unmet dependency /home/parallels/incubator-zeppelin/zeppelin-web/node_modules/grunt-jscs/node_modules/lodash, [ERROR] npm WARN unmet dependency which is version 4.6.1 [ERROR] npm WARN unmet dependency /home/parallels/incubator-zeppelin/zeppelin-web/node_modules/karma-coverage/node_modules/istanbul/node_modules/handlebars requires source-map@'^0.4.4' but will load [ERROR] npm WARN unmet dependency /home/parallels/incubator-zeppelin/zeppelin-web/node_modules/karma-coverage/node_modules/source-map, [ERROR] npm WARN unmet dependency which is version 0.5.6 [INFO] [INFO] --- frontend-maven-plugin:0.0.25:bower (bower install) @ zeppelin-web --- [INFO] Running 'bower --allow-root install' in /home/parallels/incubator-zeppelin/zeppelin-web [ERROR] module.js:338 [ERROR] throw err; [ERROR] ^ [ERROR] Error: Cannot find module 'q' [ERROR] at Function.Module._resolveFilename (module.js:336:15) [ERROR] at Function.Module._load (module.js:278:25) [ERROR] at Module.require (module.js:365:17) [ERROR] at require (module.js:384:17) [ERROR] at Object.<anonymous> (/home/parallels/incubator-zeppelin/zeppelin-web/node_modules/bower/bin/bower:6:9) [ERROR] at Module._compile (module.js:460:26) [ERROR] at Object.Module._extensions..js (module.js:478:10) [ERROR] at Module.load (module.js:355:32) [ERROR] at Function.Module._load (module.js:310:12) [ERROR] at Function.Module.runMain (module.js:501:10) [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Zeppelin ........................................... SUCCESS [ 3.333 s] [INFO] Zeppelin: Interpreter .............................. SUCCESS [ 12.493 s] [INFO] Zeppelin: Zengine .................................. SUCCESS [ 7.460 s] [INFO] Zeppelin: Display system apis ...................... SUCCESS [ 16.886 s] [INFO] Zeppelin: Spark dependencies ....................... SUCCESS [ 33.212 s] [INFO] Zeppelin: Spark .................................... SUCCESS [ 25.951 s] [INFO] Zeppelin: Markdown interpreter ..................... SUCCESS [ 0.387 s] [INFO] Zeppelin: Angular interpreter ...................... SUCCESS [ 0.223 s] [INFO] Zeppelin: Shell interpreter ........................ SUCCESS [ 0.287 s] [INFO] Zeppelin: Livy interpreter ......................... SUCCESS [ 0.520 s] [INFO] Zeppelin: HBase interpreter ........................ SUCCESS [ 3.979 s] [INFO] Zeppelin: PostgreSQL interpreter ................... SUCCESS [ 0.488 s] [INFO] Zeppelin: JDBC interpreter ......................... SUCCESS [ 0.694 s] [INFO] Zeppelin: File System Interpreters ................. SUCCESS [ 0.766 s] [INFO] Zeppelin: Flink .................................... SUCCESS [ 7.653 s] [INFO] Zeppelin: Apache Ignite interpreter ................ SUCCESS [ 0.871 s] [INFO] Zeppelin: Kylin interpreter ........................ SUCCESS [ 0.334 s] [INFO] Zeppelin: Python interpreter ....................... SUCCESS [ 0.337 s] [INFO] Zeppelin: Lens interpreter ......................... SUCCESS [ 2.984 s] [INFO] Zeppelin: Apache Cassandra interpreter ............. SUCCESS [01:00 min] [INFO] Zeppelin: Elasticsearch interpreter ................ SUCCESS [ 6.269 s] [INFO] Zeppelin: BigQuery interpreter ..................... SUCCESS [ 0.833 s] [INFO] Zeppelin: Alluxio interpreter ...................... SUCCESS [ 3.350 s] [INFO] Zeppelin: web Application .......................... FAILURE [ 3.653 s] [INFO] Zeppelin: Server ................................... SKIPPED [INFO] Zeppelin: Packaging distribution ................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 03:14 min [INFO] Finished at: 2016-09-06T19:09:29+01:00 [INFO] Final Memory: 164M/479M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.25:bower (bower install) on project zeppelin-web: Failed to run task: 'bower --allow-root install' 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 

在stackoverflow上有另外一个线程,同样的错误和@dirceusemighinibuild议cd到zeppelin-web并运行以下命令。 我创build另一个问题的原因是因为我是一个新的堆栈用户,它不会让我评论这个问题。

 ./bower install 

我试过了,我得到了以下错误:

 module.js:338 throw err; ^ Error: Cannot find module 'q' at Function.Module._resolveFilename (module.js:336:15) at Function.Module._load (module.js:278:25) at Module.require (module.js:365:17) at require (module.js:384:17) at Object.<anonymous> (/home/parallels/incubator-zeppelin/zeppelin-web/node_modules/bower/bin/bower:6:9) at Module._compile (module.js:460:26) at Object.Module._extensions..js (module.js:478:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Function.Module.runMain (module.js:501:10) parallels@ubuntu:~/incubator-zeppelin/zeppelin-web$ 

我已经unistall节点,nodejs和NPM,我重新安装他们全球

节点-v:5.0.0

npm -v:3.3.6

凉亭-v:1.7.9

有什么build议么??

我的问题是Maven的安装。 我卸载Maven,我手动重新安装到/usr/local/apache-maven/然后使用文本编辑器设置环境variables并重新运行构build。 现在build立成功了。 我不知道这个的真正原因,但最终它的工作..

 gedit ~/.bashrc export M2_HOME=/usr/local/apache-maven/apache-maven-3.3.9 export PATH=${M2_HOME}/bin:${PATH} 

运行构build:

 mvn clean package -DskipTests 
Interesting Posts