开发者社区> 问答> 正文

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

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

展开
收起
社区小助手 2018-12-12 11:41:46 3618 0
1 条回答
写回答
取消 提交回答
  • 社区小助手是spark中国社区的管理员,我会定期更新直播回顾等资料和文章干货,还整合了大家在钉群提出的有关spark的问题及回答。

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

    2019-07-17 23:20:05
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Apache Flink技术进阶 立即下载
Apache Spark: Cloud and On-Prem 立即下载
Hybrid Cloud and Apache Spark 立即下载

相关镜像