Apache - Zeppelin 在 Ubuntu 上构建失败
Posted
技术标签:
【中文标题】Apache - Zeppelin 在 Ubuntu 上构建失败【英文标题】:Apache - Zeppelin build failed on Ubuntu 【发布时间】:2016-04-19 06:00:00 【问题描述】:我很纠结这个。我在这里遵循了每一条指令(https://github.com/apache/incubator-zeppelin) 安装 Apache-Zeppelin。 Spark 需要这个。
以下是安装在 UBUNTU (VM) 中的各种必需应用程序
hduser@HDPMaster:~$ java -version
java version "1.7.0_91"
OpenJDK Runtime Environment (IcedTea 2.6.3) (7u91-2.6.3-0ubuntu0.14.04.1)
OpenJDK 64-Bit Server VM (build 24.91-b01, mixed mode)
hduser@HDPMaster:~$ mvn --version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T08:41:47-08:00)
Maven home: /usr/local/apache-maven-339
Java version: 1.7.0_91, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.19.0-43-generic", arch: "amd64", family: "unix"
hduser@HDPMaster:~$ node --version
v0.10.25
从 Git Hub 克隆的 Zeppelin
git clone https://github.com/apache/incubator-zeppelin.git
最初,我有 Maven 3.0 版本。建议其中一个线程的版本 > 3.3..安装了最新版本 (3.3.9)。
执行了以下命令,但仍然失败
mvn clean package -DskipTests -Pspark-1.5.2 -Phadoop-2.7.1
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Zeppelin ........................................... SUCCESS [ 32.205 s]
[INFO] Zeppelin: Interpreter .............................. SUCCESS [ 36.457 s]
[INFO] Zeppelin: Zengine .................................. SUCCESS [ 21.499 s]
[INFO] Zeppelin: Spark dependencies ....................... SUCCESS [ 51.142 s]
[INFO] Zeppelin: Spark .................................... SUCCESS [01:01 min]
[INFO] Zeppelin: Markdown interpreter ..................... SUCCESS [ 3.089 s]
[INFO] Zeppelin: Angular interpreter ...................... SUCCESS [ 2.736 s]
[INFO] Zeppelin: Shell interpreter ........................ SUCCESS [ 2.813 s]
[INFO] Zeppelin: Hive interpreter ......................... SUCCESS [ 12.357 s]
[INFO] Zeppelin: Apache Phoenix Interpreter ............... SUCCESS [ 15.315 s]
[INFO] Zeppelin: PostgreSQL interpreter ................... SUCCESS [ 4.681 s]
[INFO] Zeppelin: Tajo interpreter ......................... SUCCESS [ 6.417 s]
[INFO] Zeppelin: Flink .................................... FAILURE [ 6.133 s]
[INFO] Zeppelin: Apache Ignite interpreter ................ SKIPPED
[INFO] Zeppelin: Kylin interpreter ........................ SKIPPED
[INFO] Zeppelin: Lens interpreter ......................... SKIPPED
[INFO] Zeppelin: Cassandra ................................ SKIPPED
[INFO] Zeppelin: Elasticsearch interpreter ................ SKIPPED
[INFO] Zeppelin: web Application .......................... SKIPPED
[INFO] Zeppelin: Server ................................... SKIPPED
[INFO] Zeppelin: Packaging distribution ................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:17 min
[INFO] Finished at: 2016-01-13T06:12:12-08:00
[INFO] Final Memory: 122M/341M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "spark-1.5.2" could not be activated because it does not exist.
[WARNING] The requested profile "hadoop-2.7.1" could not be activated because it does not exist.
[ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.1.4:compile (scala-compile-first) on project zeppelin-flink: Execution scala-compile-first of goal net.alchim31.maven:scala-maven-plugin:3.1.4:compile failed: Plugin net.alchim31.maven:scala-maven-plugin:3.1.4 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.maven:maven-core:jar:3.0.4, org.apache.maven:maven-settings:jar:3.0.4, org.apache.maven:maven-settings-builder:jar:3.0.4, org.apache.maven:maven-repository-metadata:jar:3.0.4, org.apache.maven:maven-plugin-api:jar:3.0.4, org.apache.maven:maven-model-builder:jar:3.0.4, org.apache.maven:maven-aether-provider:jar:3.0.4, org.sonatype.aether:aether-spi:jar:1.13.1, org.sonatype.aether:aether-impl:jar:1.13.1, org.sonatype.aether:aether-api:jar:1.13.1, org.sonatype.sisu:sisu-inject-plexus:jar:2.3.0, org.apache.maven:maven-model:jar:3.0.4: Could not transfer artifact org.apache.maven:maven-core:jar:3.0.4 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org: Unknown host repo.maven.apache.org -> [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/PluginResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :zeppelin-flink
不知道从这里去哪里。 zeppelin 文件夹中的任何设置是否需要进行任何更改?请提出建议。
【问题讨论】:
【参考方案1】:我不知道它背后的原因,但这个问题得到了解决。我早上刚刚运行了下面的命令,构建成功了
mvn install -DskipTests
不确定这背后是否有逻辑,但如果有人知道,请分享。
【讨论】:
【参考方案2】:如果您从 git 克隆了 zeppelin,那么您需要转到“master”文件夹(在命令行中),然后运行以下命令:
mvn clean package -DskipTests -Pspark-1.5.2 -Phadoop-2.7.1
【讨论】:
以上是关于Apache - Zeppelin 在 Ubuntu 上构建失败的主要内容,如果未能解决你的问题,请参考以下文章
在 Apache Livy Interpreter for Zeppelin 中访问 zeppelin 上下文的问题
无法在基于 apache/zeppelin:0.9.0 的 Docker 映像中安装软件包
java.lang.ClassNotFoundException: org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer 尝试在