开发者社区> 问答> 正文

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

社区小助手 2018-12-12 11:41:46 553

我用自制软件在我的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

分享到
取消 提交回答
全部回答(1)
  • 社区小助手
    2019-07-17 23:20:05

    你应该使用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)


    你应该使用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)

    0 0
+ 订阅

大数据计算实践乐园,近距离学习前沿技术

推荐文章
相似问题