gpt4 book ai didi

apache-spark - Spark 2.4.3 使用哪个 Scala 版本?

转载 作者:行者123 更新时间:2023-12-03 23:28:20 24 4
gpt4 key购买 nike

我从自制软件在 Mac OS 上安装了 Scala(版本 2.12.8)和 Spark(2.4.3)。我的机器上已经安装了 Java 1.8。

当我启动 spark-shell 时,我看到标志说:

Spark 版本 2.4.3,使用 Scala 版本 2.11.12(Java HotSpot(TM) 64 位服务器 VM,Java 1.8.0_144)

为什么我的机器上安装的是 Scala 版本 2.11.12 而不是 Scala(版本 2.12.8)?

Spark 2.4.3 是否与 Scala 2.11.12 一起提供?

谢谢。

最佳答案

the release notes 所述:

Spark 2.4.3 is a maintenance release containing stability fixes. This release is based on the branch-2.4 maintenance branch of Spark. We strongly recommend all 2.4 users to upgrade to this stable release.

Note that 2.4.3 switched the default Scala version from Scala 2.12 to Scala 2.11, which is the default for all the previous 2.x releases except 2.4.2. That means, the pre-built convenience binaries are compiled for Scala 2.11. Spark is still cross-published for 2.11 and 2.12 in Maven Central, and can be built for 2.12 from source.


此外,您的机器上碰巧拥有的 Scala 版本完全无关 - Spark 使用已用于编译它的 Scala 版本。

关于apache-spark - Spark 2.4.3 使用哪个 Scala 版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56197221/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com