Automic VaultAutomic Vault

brew

使用 Homebrew 安装 apache-spark

查看 apache-spark 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install apache-spark

local Homebrew formula metadata

概览

软件包摘要

Engine for large-scale data processing

命令和别名

  • docker-image-tool.sh
  • find-spark-home
  • load-spark-env.sh
  • pyspark
  • run-example
  • spark-beeline
  • spark-class
  • spark-connect-shell
  • spark-pipelines
  • spark-shell
  • spark-sql
  • spark-submit
  • sparkR

历史

项目历史与用法

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.

时间线

  • 2009: Spark begins at UC Berkeley AMPLab.
  • 2010: Spark is open sourced.
  • 2013: Spark enters the Apache Incubator.
  • 2014: Spark becomes an Apache top-level project.
  • 2020s: Spark continues expanding SQL, streaming, Kubernetes, and client-server features.

Related projects

  • Apache Hadoop and YARN are central to Spark's early cluster deployment history.
  • Apache Hive influenced Spark SQL's data-warehouse compatibility story.
  • Delta Lake, Apache Iceberg, and Apache Hudi are common table-format companions in modern Spark deployments.

安全态势

风险级别:yellow

broad file, network, media, or database tool signal. generalized runtime or code generation signal.

风险分类器

yellow 风险 · 中 置信度 · runtime

原因

  • broad file, network, media, or database tool signal
  • generalized runtime or code generation signal

信号

  • text:shell
  • text:sql,image

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
$SPARK_HOME/conf/spark-defaults.conf$SPARK_HOME/conf/spark-env.sh$SPARK_HOME/conf/log4j2.properties

可执行文件

已安装的可执行文件

命令类型暴露范围备注
docker-image-tool.shcli全局可执行文件
find-spark-homecli全局可执行文件
load-spark-env.shcli全局可执行文件
pysparkcli全局可执行文件
run-examplecli全局可执行文件
spark-beelinecli全局可执行文件
spark-classcli全局可执行文件
spark-connect-shellcli全局可执行文件
spark-pipelinescli全局可执行文件
spark-shellcli全局可执行文件
spark-sqlcli全局可执行文件
spark-submitcli全局可执行文件
sparkRcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本4.1.2
管理器更新时间2026-05-30
本地数据OK
上游not checked
检测到的最新版本未检测到

https://spark.apache.org/

安装元数据

软件包元数据

软件包键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
Pulseupdated
依赖openjdk@21
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameapache-spark
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • package relationship graph
  • package version freshness
  • package-page enrichment