安装spark的步骤较为简单,前提是要安装好Hadoop哦。
这里我利用brew来安装,如果你安装了homebrew直接在终端里输入brew install apache-spark然后等着就可以了(如果没有安装过brew的参考其他博主的内容去安装哦)
[code]brew install apache-spark
==> Auto-updating Homebrew...
Adjust how often this is run with HOMEBREW_AUTO_UPDATE_SECS or disable with
HOMEBREW_NO_AUTO_UPDATE. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
ffmpeg@6
==> New Casks
boltai
You have 5 outdated formulae installed.
==> Fetching dependencies for apache-spark: libx11 and openjdk@17
==> Fetching libx11
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/libx11-1.8.9.arm64_
######################################################################### 100.0%
==> Fetching openjdk@17
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/openjdk%4017-17.0.1
######################################################################### 100.0%
==> Fetching apache-spark
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/apache-spark-3.5.1.
######################################################################### 100.0%
==> Installing dependencies for apache-spark: libx11 and openjdk@17
==> Installing apache-spark dependency: libx11
==> Pouring libx11-1.8.9.arm64_sonoma.bottle.tar.gz
|