Mac中使用brew更新Spark至3.2.0
当前Mac中安装的spark版本比较旧为2.3.0
使用brew install spark
出现问题:
Error: Permission denied @ apply2files - /usr/local/lib/docker/cli-plugins
解决方法:
sudo chown -R $(whoami) $(brew --prefix)/*
下载apache-spark
brew install apache-spark
https://ghcr.io/v2/homebrew/core/apache-spark/manifests/3.2.0
Spark3.2.0的安装路径
/usr/local/Cellar/apache-spark/3.2.0
相关配置文件都在.base_profile
export SPARK_HOME=/usr/local/Cellar/apache-spark/3.2.0
export PATH=$PATH:$SPARK_HOME/bin
alias start-spark='$SPARK_HOME/libexec/sbin/start-all.sh'
alias stop-spark='$SPARK_HOME/libexec/sbin/stop-all.sh'