无法构建和打包 Apache Toree

Unable to Build and Package Apache Toree

为了让 EclairJS 客户端与 Apache Spark 对话,它需要一个 Apache Toree 实例 运行 并且 Toree 必须能够连接到您的 Spark master。

先决条件

Java 8 更新 70 或更高

说明

下载使用 Hadoop 2.7 构建的 Apache Spark 2.0.0 并从存档中提取它。

安装 Jupyter(例如 pip install jupyter)和 Jupyter 内核网关(pip install jupyter-kernel-gateway

下载并构建 Apache Toree

$ git clone https://github.com/apache/incubator-toree

$ cd incubator-toree

$ git checkout e8ecd0623c65ad104045b1797fb27f69b8dfc23f

$ make dist

在构建 Apache Toree 时,我在上述步骤中遇到错误:

APACHE_SPARK_VERSION=2.0.0 VERSION=0.2.0.dev1-incubating IS_SNAPSHOT=true sbt toree/assembly
/bin/sh: 1: sbt: not found
Makefile:133: recipe for target 'target/scala-2.11/toree-assembly-0.2.0.dev1-incubating-SNAPSHOT.jar' failed
make: *** [target/scala-2.11/toree-assembly-0.2.0.dev1-incubating-SNAPSHOT.jar] Error 127

我不知道下一步该怎么做,谁能帮帮我!

您的构建失败,因为您需要安装 sbt(Scala 构建工具)。您可以从 SBT 网站下载:https://www.scala-sbt.org/