Automic VaultAutomic Vault

brew

使用 Homebrew 安装 hive

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install hive

local Homebrew formula metadata

概览

软件包摘要

Hadoop-based data summarization, query, and analysis

命令和别名

  • beeline
  • hive
  • hive-config.sh
  • hiveserver2
  • hplsql
  • init-hive-dfs.sh
  • metatool
  • replstats.sh
  • schematool

历史

项目历史与用法

Apache Hive is a distributed data warehouse system for reading, writing, managing, and querying large datasets in distributed storage using SQL. It began at Facebook as a way to make Hadoop usable by analysts and engineers who did not want to write MapReduce jobs for ordinary aggregation and reporting.

As a package, Hive is historically important because it turned Hadoop clusters into SQL-addressable data warehouses. Installing the package gives users not just a CLI named `hive`, but Beeline, HiveServer2, metastore tooling, schema tooling, HPL/SQL, and the operational surface around Hadoop-era data warehousing.

项目历史

Facebook engineers started building Hive after data growth exposed the limits of a commercial RDBMS-backed warehouse. The Meta engineering history says Facebook's data grew from a 15 TB dataset in 2007 to more than 2 PB by the time of the 2009 article, and that MapReduce was too low-level for many analysis tasks.

Hive's design brought tables, columns, partitions, and a SQL subset to Hadoop while preserving Hadoop's extensibility. Facebook open sourced Hive in August 2008, and Apache Foundation milestones record Hive entering the Apache Incubator in 2008. ASF milestones record Hive becoming a top-level Apache project in 2010.

The Apache Hive site describes the project as a distributed, fault-tolerant data warehouse at massive scale. It emphasizes SQL over distributed storage, the Hive Metastore as a central metadata repository, HiveServer2 for multi-client access, cost-based optimization, compaction, replication, security integrations, and support for modern storage systems and table formats.

采用历史

Early adoption was intense inside Facebook. The Meta engineering post says Hive was popular with internal users from the start, regularly ran thousands of jobs, served hundreds of users, stored more than 2 PB of uncompressed data, and loaded 15 TB daily.

Open-source adoption followed because Hive lowered the barrier to Hadoop analytics. It let analysts use a SQL-like language while Hadoop handled distributed execution. The Apache site later presents Hive as used by enterprises and cloud/data-platform vendors, and highlights integrations with S3, Azure Data Lake, Google Cloud Storage, Spark, Presto, Impala, Apache Ranger, Apache Atlas, Apache Iceberg, and other data-stack components.

Hive also created a durable ecosystem surface: the metastore became a central catalog for other engines and data lake architectures, while Beeline and HiveServer2 became common access points for JDBC, ODBC, BI tools, and scripts.

使用方式

In package-manager terms, users install Hive to get command-line and service entry points. The Homebrew package exposes `beeline`, `hive`, `hive-config.sh`, `hiveserver2`, `hplsql`, `init-hive-dfs.sh`, `metatool`, `replstats.sh`, and `schematool`.

Historically, users ran HiveQL through the `hive` CLI; Beeline and HiveServer2 became the preferred client/server model for multi-client and authenticated access. Operators configure XML files such as `hive-site.xml`, metastore and server configuration files, and Beeline connection files.

Typical workloads include SQL analytics on distributed storage, ETL, table and partition management, metastore-backed data lake catalogs, batch reporting, compaction, replication, and integration with BI and JDBC/ODBC clients.

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

Hive is one of the packages that made the Hadoop ecosystem approachable to SQL users. It matters in package history because it bridged a low-level distributed-computing substrate and the familiar data-warehouse interface that enterprises already knew how to staff, script, and operate.

The package also illustrates why some CLI packages are really ecosystems. The `hive` formula is not only a command; it packages services, schema tools, metastore administration, connection clients, and configuration conventions. That makes it closer to a platform component than a simple executable.

Hive's long tail is especially visible in the metastore. Even as newer engines evolved, the Hive Metastore remained a shared metadata layer in data-lake deployments, so package maintainers and operators continued to care about Hive compatibility beyond the original MapReduce execution model.

时间线

  • 2007: Facebook begins moving large-scale data analysis pressure toward Hadoop-backed infrastructure.
  • 2008-08: Hive is open sourced by Facebook.
  • 2008: ASF milestones record Hive entering the Apache Incubator.
  • 2009-06-10: Facebook publishes the Hive petabyte-scale Hadoop data warehouse article.
  • 2010: ASF milestones record Hive becoming a top-level Apache project.
  • 2010s: HiveServer2, Beeline, cost-based optimization, metastore use, and enterprise security integrations become part of common Hive deployments.
  • 2020s: Apache Hive site highlights data lake, cloud storage, Iceberg, compaction, replication, security, and metastore-centered use cases.

Related projects

  • Apache Hadoop is the distributed storage and processing ecosystem Hive was built on.
  • Apache HCatalog graduated in 2013 to become part of Apache Hive, adding table and storage management services for Hadoop data.
  • Apache Spark, Presto, Impala, and other engines integrate with Hive concepts or the Hive Metastore in data lake environments.
  • Apache Ranger and Apache Atlas are documented by the Hive site as security, authorization, lineage, and governance integrations.
  • Apache Iceberg is highlighted by the Hive site as a modern table-format integration.

来源

  • Apache Hive version-control page for official repository URL.
  • Apache Hive website for project description, features, integrations, and adoption framing.
  • Apache Software Foundation milestones for Incubator and top-level-project dates.
  • Meta Engineering article for Facebook origin, open-sourcing, internal scale, and early architecture.

安全态势

风险级别: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:repl
  • text:sql,server

安装行为

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

建议审查

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

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
$HIVE_CONF_DIR/hive-site.xml$HIVE_CONF_DIR/hivemetastore-site.xml$HIVE_CONF_DIR/hiveserver2-site.xml$HIVE_HOME/conf/hive-site.xml

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
${user.home}/.beeline/beeline-hs2-connection.xml$HIVE_CONF_DIR/beeline-hs2-connection.xml/etc/hive/conf/beeline-hs2-connection.xml
Windows
${user.home}\beeline\beeline-hs2-connection.xml

可执行文件

已安装的可执行文件

命令类型暴露范围备注
beelinecli全局可执行文件
hivecli全局可执行文件
hive-config.shcli全局可执行文件
hiveserver2cli全局可执行文件
hplsqlcli全局可执行文件
init-hive-dfs.shcli全局可执行文件
metatoolcli全局可执行文件
replstats.shcli全局可执行文件
schematoolcli全局可执行文件

新鲜度

版本和新鲜度

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

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

https://hive.apache.org

安装元数据

软件包元数据

软件包键brew:hive
版本4.2.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/hive
主页https://hive.apache.org
仓库https://github.com/apache/hive
上游文档https://hive.apache.org/development/gettingstarted-latest
许可证Apache-2.0
源码归档https://www.apache.org/dyn/closer.lua?path=hive/hive-4.2.0/apache-hive-4.2.0-bin.tar.gz
最后更新2026-06-22T14:03:43-07:00
Pulseupdated
依赖hadoop, openjdk@21
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明
注意事项If you want to use HCatalog with Pig, set $HCAT_HOME in your profile: export HCAT_HOME=$HOMEBREW_PREFIX/opt/hive/libexec/hcatalog

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namehive
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • 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