macOS
brew install apache-sparklocal Homebrew formula metadata
安装
brew install apache-sparklocal Homebrew formula metadata
概览
Engine for large-scale data processing
历史
Apache Spark is a general-purpose engine for large-scale data processing. For package-manager users, it is the canonical install that gives you `spark-submit`, language shells, SQL tooling, example runners, and runtime scripts for local and cluster-oriented workflows.
Spark originated at the UC Berkeley AMPLab as a faster, more interactive alternative to earlier MapReduce-centered data processing systems. Its project history is closely tied to resilient distributed datasets, in-memory computation, and developer-friendly APIs for Scala, Python, Java, SQL, and R.
Spark became an Apache project and grew into a broad analytics engine rather than a single-purpose batch runner. The official project history notes its Apache Software Foundation path and the release line that made Spark a standard part of the big-data toolchain.
Over time Spark absorbed major adjacent workloads: Spark SQL and DataFrames for structured data, MLlib for machine learning, GraphX for graph processing, Structured Streaming for stream processing, and Spark Connect for client-server connectivity.
Spark's adoption history is unusually deep for a package-manager formula because it crossed from research project to de facto data-platform component. It is used for ETL, interactive analytics, machine learning pipelines, and streaming workloads across local machines, YARN, Mesos-era clusters, Kubernetes, and managed cloud services.
The supplied Homebrew package data shows a CLI-heavy install surface: `spark-submit`, `spark-shell`, `pyspark`, `spark-sql`, `sparkR`, `spark-class`, and helper scripts. That executable set mirrors the way Spark became both an application runtime and a command-line toolbox.
The main package workflow is submitting applications with `spark-submit`, opening interactive shells with `spark-shell` or `pyspark`, running SQL through `spark-sql`, and configuring behavior through files in `$SPARK_HOME/conf`.
Spark users often install it locally even when production jobs run elsewhere, because the local CLI is useful for testing jobs, validating dependencies, developing notebooks or scripts, and matching cluster runtime behavior.
Spark is a classic heavyweight formula: it is mostly scripts plus a large JVM distribution, but those scripts define the ergonomics of a whole data ecosystem. Packagers care about Java compatibility, Python/R bindings, shell wrappers, classpaths, examples, and config file layout.
It is also one of the packages that turns a laptop into a miniature data platform. A formula install can run local mode, submit to clusters, or serve as a client for remote compute, which makes it more than a simple CLI utility.
安全态势
broad file, network, media, or database tool signal. generalized runtime or code generation signal.
yellow 风险 · 中 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
$SPARK_HOME/conf/spark-defaults.conf$SPARK_HOME/conf/spark-env.sh$SPARK_HOME/conf/log4j2.properties可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
docker-image-tool.sh | cli | 全局可执行文件 | |
find-spark-home | cli | 全局可执行文件 | |
load-spark-env.sh | cli | 全局可执行文件 | |
pyspark | cli | 全局可执行文件 | |
run-example | cli | 全局可执行文件 | |
spark-beeline | cli | 全局可执行文件 | |
spark-class | cli | 全局可执行文件 | |
spark-connect-shell | cli | 全局可执行文件 | |
spark-pipelines | cli | 全局可执行文件 | |
spark-shell | cli | 全局可执行文件 | |
spark-sql | cli | 全局可执行文件 | |
spark-submit | cli | 全局可执行文件 | |
sparkR | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:apache-spark |
|---|---|
| 版本 | 4.1.2 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/apache-spark |
| 主页 | https://spark.apache.org/ |
| 仓库 | https://github.com/apache/spark |
| 上游文档 | https://spark.apache.org/docs/latest |
| 许可证 | Apache-2.0 |
| 源码归档 | https://www.apache.org/dyn/closer.lua?path=spark/spark-4.1.2/spark-4.1.2-bin-hadoop3.tgz |
| 最后更新 | 2026-05-30T11:05:46-04:00 |
| Pulse | updated |
| 依赖 | openjdk@21 |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | apache-spark |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.