如何通过自制程序安装apache-spark的特定版本?

sulc1iza  于 2023-02-24  发布在  Apache
关注(0)|答案(1)|浏览(148)

过去我使用homebrew安装apache-spark,如下所示:

brew install apache-spark

直到最近,它给了我apache-spark版本3.3.1。现在它给了3.3.2,与我们使用的[azure]服务器不兼容。我需要3.3.1
我已经试过了:

brew install apache-spark@3.3.1

但没有骰子:

Running `brew update --auto-update`...
==> Downloading https://formulae.brew.sh/api/formula.json
##O#-#                                                                        
==> Downloading https://formulae.brew.sh/api/cask.json
##O#-#                                                                        
Warning: No available formula with the name "apache-spark@3.3.1". Did you mean apache-spark?
==> Searching for similarly named formulae and casks...
==> Formulae
apache-spark ✔

To install apache-spark ✔, run:
  brew install apache-spark ✔

我还访问了Homebrew apache-spark页面,它没有提供替代方案:

那么正确的过程是什么呢?

jdgnovmf

jdgnovmf1#

如果你查看版本更新的提交https://github.com/Homebrew/homebrew-core/commit/05b11b92801d68599b225f9cebc56d81f2ac85eb,你会在第7行发现以前的提交号是红色的;该散列可用于安装以前的版本:
curl -L https://github.com/Homebrew/homebrew-core/raw/91df3e3f73682d32261a8b245af6b0553dc5cf4af208ef82219283d23ee01ece/Formula/apache-spark.rb -o apache-spark.rb && brew install apache-spark.rb

相关问题