1

我是齐柏林飞艇的初学者。今天我尝试使用命令在我的计算机上安装 zeppelin:

mvn clean install -Pspark-1.5.1 -Dhadoop.version=2.3.0-cdh5.0.2 -Phadoop-2.3 -DskipTests

我收到“业力:单元”测试未通过的错误,因此我在“ ”文件中将“ --force”添加到 grunt 的 maven 目标中。zeppelin-web/pom.xml之后,我确实通过了 mvn install 命令,结果如下。</p>

但是,当我访问 zeppelin-web 的索引页面时,我得到了一个空白页面,其中包含一些 javascript 错误。它通过浏览器开发者工具的控制台显示错误:

Uncaught Error: [$injector:modulerr] Failed to instantiate module zeppelinWebApp due to:
Error: [$injector:modulerr] Failed to instantiate module angular.filter due to:
Error: [$injector:nomod] Module 'angular.filter' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.4.7/$injector/nomod?p0=angular.filter
    at http://172.21.4.227:8080/scripts/vendor.js:36:380
    at http://172.21.4.227:8080/scripts/vendor.js:36:9937

当我在其他计算机上尝试相同的操作时,出现以下错误:

Uncaught Error: [$injector:modulerr] Failed to instantiate module zeppelinWebApp due to:
Error: [$injector:modulerr] Failed to instantiate module ngRoute due to:
Error: [$injector:nomod] Module 'ngRoute' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.4.7/$injector/nomod?p0=ngRoute
    at http://172.20.36.248:12048/scripts/vendor.js:36:380
    at http://172.20.36.248:12048/scripts/vendor.js:36:9937

我想尽一切办法解决它,但对前端技能知之甚少,我不知道该怎么做。有人可以帮我吗?非常感谢。

以下是 mvn 结果:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Zeppelin ........................................... SUCCESS [ 17.732 s]
[INFO] Zeppelin: Interpreter .............................. SUCCESS [ 18.971 s]
[INFO] Zeppelin: Zengine .................................. SUCCESS [  9.105 s]
[INFO] Zeppelin: Spark dependencies ....................... SUCCESS [ 34.072 s]
[INFO] Zeppelin: Spark .................................... SUCCESS [ 37.429 s]
[INFO] Zeppelin: Markdown interpreter ..................... SUCCESS [  2.069 s]
[INFO] Zeppelin: Angular interpreter ...................... SUCCESS [  1.903 s]
[INFO] Zeppelin: Shell interpreter ........................ SUCCESS [  1.943 s]
[INFO] Zeppelin: Hive interpreter ......................... SUCCESS [  5.718 s]
[INFO] Zeppelin: Apache Phoenix Interpreter ............... SUCCESS [  7.575 s]
[INFO] Zeppelin: PostgreSQL interpreter ................... SUCCESS [  3.014 s]
[INFO] Zeppelin: Tajo interpreter ......................... SUCCESS [  2.681 s]
[INFO] Zeppelin: Flink .................................... SUCCESS [ 10.524 s]
[INFO] Zeppelin: Apache Ignite interpreter ................ SUCCESS [  4.666 s]
[INFO] Zeppelin: Kylin interpreter ........................ SUCCESS [  2.621 s]
[INFO] Zeppelin: Lens interpreter ......................... SUCCESS [  6.013 s]
[INFO] Zeppelin: Cassandra ................................ SUCCESS [01:05 min]
[INFO] Zeppelin: web Application .......................... SUCCESS [02:26 min]
[INFO] Zeppelin: Server ................................... SUCCESS [ 21.470 s]
[INFO] Zeppelin: Packaging distribution ................... SUCCESS [  1.740 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 06:41 min
[INFO] Finished at: 2015-11-14T21:04:28+08:00
[INFO] Final Memory: 158M/544M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "spark-1.5.1" could not be activated because it does not exist.
4

1 回答 1

0

尝试“mvn clean package -DskipTests”

于 2015-11-18T09:42:09.947 回答