【问题标题】:Zeppelin build failureZeppelin 构建失败
【发布时间】:2015-08-31 17:01:54
【问题描述】:

我正在尝试为 spark1.0.0 和 hadoop1.0.3 安装 zeppelin。

可能重复:Build error from Installing Apache Zeppelin

好吧,上面的线程没有多大帮助。我的输出与上述线程完全相同:Web 应用程序无法编译。

我运行的命令是'mvn install -DskipTests -Dspark.version=1.0.0 -Dhadoop.version=1.0.3'

我有 maven 3.0.4 / java 1.8 / npm 1.1.4

[INFO] Zeppelin .......................................... SUCCESS [2.880s]
[INFO] Zeppelin: Interpreter ............................. SUCCESS [6.780s]
[INFO] Zeppelin: Zengine ................................. SUCCESS [3.394s]
[INFO] Zeppelin: Spark ................................... SUCCESS [31.284s]
[INFO] Zeppelin: Markdown interpreter .................... SUCCESS [1.936s]
[INFO] Zeppelin: Angular interpreter ..................... SUCCESS [1.916s]
[INFO] Zeppelin: Shell interpreter ....................... SUCCESS [1.905s]
[INFO] Zeppelin: Hive interpreter ........................ SUCCESS [2.226s]
[INFO] Zeppelin: Tajo interpreter ........................ SUCCESS [2.061s]
[INFO] Zeppelin: Flink ................................... SUCCESS [3.358s]
[INFO] Zeppelin: web Application ......................... FAILURE [0.215s]
[INFO] Zeppelin: Server .................................. SKIPPED
[INFO] Zeppelin: Packaging distribution .................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 58.228s
[INFO] Finished at: Tue Jun 16 11:50:03 KST 2015
[INFO] Final Memory: 47M/485M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.23:install-node-and-npm (install node and npm) on project zeppelin-web: The plugin com.github.eirslett:frontend-maven-plugin:0.0.23 requires Maven version 3.1.0 -> [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/PluginIncompatibleException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :zeppelin-web

是的,我确实已经从 git:// 切换到 https:// 并再次尝试,但没有成功。

【问题讨论】:

  • 你能帮我解决这个问题吗:stackoverflow.com/questions/40855207/…
  • 我遇到了同样的错误,并且在遵循删除 nodeJS、nvm 和 npm 的建议时仍然如此。唯一的解决方案是从二进制文件安装 Zeppellin。使用 CentOS 6.8。错误:“无法运行任务:'yarn install --no-lockfile'失败。......无法在项目zeppelin-web上执行目标com.github.eirslett:frontend-maven-plugin:1.3:yarn(yarn install) "

标签: build apache-zeppelin


【解决方案1】:

正如错误消息指出的那样:

[ERROR] Failed to execute goal 
com.github.eirslett:frontend-maven-plugin:0.0.23:install-node-and-npm 
(install node and npm) on project zeppelin-web: 
The plugin com.github.eirslett:frontend-maven-plugin:0.0.23 
requires Maven version 3.1.0 -> [Help 1]

您需要将 maven 版本从 3.0.4 更新到至少 3.1.0。

但是你会遇到另一个错误:zeppelin-web: Failed to run task: 'npm install --color=false' failed

要更正该问题,您需要以 sudoer 或管理员身份运行 mvn 命令:

sudo mvn install -DskipTests -Dspark.version=1.0.0 -Dhadoop.version=1.0.3

【讨论】:

  • 谢谢。将 Maven 更新到 3.1 为我解决了这个问题。
【解决方案2】:

我在 ~/incubator-zeppelin-master/zeppelin-web 下的 .bowerrc 文件中添加了以下元素。

"代理" : "http://:", “https 代理”:“http://:”

之后,我尝试再次构建,并且不使用 sudo 命令成功完成。

请参考以下网址: https://github.com/NFLabs/zeppelin/tree/master/zeppelin-web

【讨论】:

    【解决方案3】:

    我尝试了 mvn install -DskipTests,系统配置如下:
    1) Java 7
    2) Maven 3.3
    3) Spark 0.9.0
    4) CDH4集群

    构建对我来说是成功的。

    【讨论】:

    猜你喜欢
    • 2017-06-18
    • 2017-04-20
    • 2017-01-14
    • 2016-04-19
    • 2017-04-21
    • 2017-03-02
    • 2015-09-14
    • 2017-05-29
    • 2020-10-19
    相关资源
    最近更新 更多