3

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

可能重复:安装 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:// 并再次尝试,但没有成功。

4

3 回答 3

3

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

[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

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

sudo mvn install -DskipTests -Dspark.version=1.0.0 -Dhadoop.version=1.0.3
于 2015-06-19T13:12:50.967 回答
2

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

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

之后,我尝试再次构建,它在不使用 sudo 命令的情况下成功完成。

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

于 2015-11-19T23:53:08.477 回答
0

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

构建对我来说是成功的。

于 2015-07-22T13:01:15.943 回答