# 使用 Homebrew, Nix 安装 apache-flink

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

## 安装

```sh
sudo av install brew:apache-flink
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install apache-flink
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#flink
```

  证据: nixpkgs package indexes: pkgs/by-name/fl/flink/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:apache-flink
- **软件包管理器:** Homebrew
- **版本:** 2.3.0
- **来源摘要:** Scalable batch and stream data processing
- **主页:** <https://flink.apache.org/>
- **仓库:** <https://github.com/apache/flink>
- **最后更新:** 2026-06-25T22:55:51Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- flink (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.3.0
## 项目历史与用法

Apache Flink is a distributed stream and batch processing engine for stateful computations over bounded and unbounded data streams, with APIs ranging from low-level DataStream jobs to Table API and SQL.

### 项目历史

Flink grew out of the Stratosphere research project, which began in 2009 around TU Berlin and related European data-management research groups. The project entered the Apache Incubator in April 2014, released 0.6-incubating later that year, and graduated as an Apache top-level project in December 2014.

The ASF top-level announcement framed Flink as a system that deliberately combined streaming/pipelining and batch processing techniques. From early on, the project included its own serialization, memory management, and cost-based query optimization pieces, which made it more than just a wrapper around MapReduce-era execution.

### 采用历史

Flink's early adoption story centered on companies experimenting with or adopting it for production data infrastructure. ASF's 2014 announcement quoted ResearchGate, Spotify, and Amadeus discussing production or exploratory use, while noting more than 70 contributors by the time of graduation.

Over time, Flink became a common choice for event-time processing, exactly-once state, streaming SQL, continuous ETL, and event-driven applications. Its ecosystem later externalized many connectors into separate Apache repositories, which matters for packages because the main flink CLI is only the core of a broader connector and deployment stack.

### 使用方式

The Homebrew package exposes the flink command, which developers use to run and inspect jobs, interact with local clusters, and submit work to configured deployments. Apache's current stable docs describe Flink as designed for common cluster environments, in-memory speed, and scale.

Starting with Flink 2.0, Apache's docs say the supported configuration file is config.yaml in the conf directory. That makes $FLINK_HOME/conf/config.yaml the package-level config location for the current formula.

### 为什么软件包爱好者会关心

Flink is package-nerd material because it is both a developer CLI and a distributed runtime. A local install needs Java, shell scripts, a config directory, plugin/connectors, logs, and often a clear boundary between the package's $FLINK_HOME and the user's deployment configuration.

It is also one of the major Java data engines where versioning matters deeply: jobs, connectors, state formats, savepoints, and cluster versions are coupled enough that packaging the latest major line and a versioned 1.x line is practically useful.

### 时间线

- 2009: The Stratosphere research project begins.
- 2014: Flink enters the Apache Incubator.
- 2014: Apache Flink 0.6-incubating is released.
- 2014: Flink graduates as an Apache top-level project.
- 2026: Current docs describe config.yaml as the Flink 2.x configuration file.

### Related projects

- Stratosphere is Flink's research-project predecessor.
- Apache Kafka, Hadoop YARN, Kubernetes, Apache Paimon, Flink CDC, and the externalized Flink connector repositories are common adjacent projects.

### 来源

- <https://github.com/apache/flink>
- <https://incubator.apache.org/projects/flink.html>
- <https://news.apache.org/foundation/entry/the_apache_software_foundation_announces69>
- <https://nightlies.apache.org/flink/flink-docs-stable/docs/deployment/config/>


## 安全说明

没有找到 apache-flink 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## 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

- Unix: $FLINK_HOME/conf/config.yaml
## 其他软件包管理器记录

- Nix - flink: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/fl/flink/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/apache-flink.yml](https://github.com/mxcl/pkgdb/blob/main/combined/apache-flink.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
