gpt4 book ai didi

macos - 如何在 Homebrew 中找到 Apache Spark 包的安装目录?

转载 作者:行者123 更新时间:2023-12-02 06:19:39 30 4
gpt4 key购买 nike

我用 Homebrew 软件在我的 mac 上安装了 spark。我试图找到我安装它的目录。我试过用谷歌搜索它,但我运气不佳。看起来不应该那么棘手。谁能告诉我我需要在 mac 终端或 spark shell 中运行什么才能找到 spark 的安装目录?

更新:

代码:

brew info apache-spark

输出:
apache-spark: stable 2.3.2, HEAD
Engine for large-scale data processing
https://spark.apache.org/
/usr/local/Cellar/apache-spark/2.3.2 (1,058 files, 244.6MB) *
Built from source on 2018-10-30 at 14:16:30
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/apache-spark.rb
==> Requirements
Required: java = 1.8 ✔
==> Options
--HEAD
Install HEAD version
==> Analytics
install: 4,534 (30 days), 14,340 (90 days), 56,698 (365 days)
install_on_request: 4,263 (30 days), 13,490 (90 days), 51,876 (365 days)
build_error: 0 (30 days)

代码:
which spark-shell

输出:
/Users/sshields/anaconda2/bin/spark-shell

最佳答案

您应该使用 brew info apache-spark如果您 brew install,它将在输出中包含路径它(我没有,所以它不在下面的输出中)

$ brew info apache-spark
apache-spark: stable 2.3.2, HEAD
Engine for large-scale data processing
https://spark.apache.org/
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/apache-spark.rb
==> Requirements
Required: java = 1.8 ✔
==> Options
--HEAD
Install HEAD version
==> Analytics
install: 4,534 (30 days), 14,340 (90 days), 56,698 (365 days)
install_on_request: 4,263 (30 days), 13,490 (90 days), 51,876 (365 days)
build_error: 0 (30 days)

来自 website :

Homebrew installs packages to their own directory and then symlinks their files into /usr/local.

关于macos - 如何在 Homebrew 中找到 Apache Spark 包的安装目录?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53381794/

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