gpt4 book ai didi

node.js - 齐柏林飞艇 : web Application failure while building zeppelin

转载 作者:太空宇宙 更新时间:2023-11-03 22:12:06 25 4
gpt4 key购买 nike

我正在尝试使用本教程中的说明构建 apache zeppelin:Installing Zeppelig Tutorial

我安装了spark 2.0和maven 3.3.9最新版本。我使用以下命令来构建 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 上有另一个线程也有同样的错误,@dirceusemighini 建议 cd 到 zeppelin-web 并运行以下命令。我创建另一个问题的原因是因为我是一个新的堆栈用户,它不允许我评论该问题。

./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$

我已经卸载了 node、nodejs 和 npm,并在全局范围内重新安装了它们

Node -v:5.0.0

npm -v:3.3.6

凉亭-v:1.7.9

有什么建议吗?

最佳答案

对我来说问题是 Maven 安装。我卸载 Maven 并手动将其重新安装到 /usr/local/apache-maven/然后使用文本编辑器设置环境变量并重新运行构建。现在构建成功了。我不知道其真正原因,但最终它起作用了..

gedit  ~/.bashrc

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

运行构建:

mvn clean package -DskipTests 

关于node.js - 齐柏林飞艇 : web Application failure while building zeppelin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39355547/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com