Retour au classement

apache/polaris

Javapolaris.apache.org

Apache Polaris, the interoperable, open source catalog for Apache Iceberg

icebergapachepolariscataloglakehousemetadataopencatalog
Croissance des étoiles
Étoiles
2k
Forks
488
Croissance hebdomadaire
Issues
255
5001k1.5k2k
juin 2024févr. 2025nov. 2025juil. 2026
ArtefactsMavengit clone https://github.com/apache/polaris.git
README

Apache Polaris

Apache Polaris™ is an open-source, fully-featured catalog for Apache Iceberg™. It implements Iceberg's REST API, enabling seamless multi-engine interoperability across a wide range of platforms, including Apache Doris™, Apache Flink®, Apache Spark™, Dremio® OSS, StarRocks, and Trino.

Documentation is available at https://polaris.apache.org. The REST OpenAPI specifications can be browsed online: Polaris Management API and Polaris Catalog API.

For a high-level, auto-generated tour of the codebase's modules and relationships, see the Code Wiki for Apache Polaris. It is a third-party, auto-generated navigation aid, useful for orientation, but the source tree remains the authoritative reference.

To get involved, subscribe to the dev mailing list (or browse the archives) and read the CONTRIBUTING guide.

Slack Build Status

Overview & Quickstart

  • Overview of what Polaris is and how it works.
  • Quickstart to set up a Polaris instance locally or on a supported cloud provider.

Project Structure

The repository is organized into the following groups of Gradle modules. Each leaf is a Gradle subproject; some link to a per-module README.

  • Core
  • API - generated from the OpenAPI specifications:
    • polaris-api-management-model, polaris-api-management-service - Polaris Management API
    • polaris-api-iceberg-service - Iceberg REST service
    • polaris-api-catalog-service - Polaris Catalog API
  • Runtime
  • Persistence
    • polaris-relational-jdbc - JDBC implementation of BasePersistence
  • Extensions
    • polaris-extensions-federation-hive, polaris-extensions-federation-hadoop, polaris-extensions-federation-bigquery - catalog federation
    • polaris-extensions-auth-opa, polaris-extensions-auth-ranger (plus *-tests) - external authorization
  • Tooling & build support
    • polaris-bom, polaris-build-logic, polaris-version - BOM, shared build logic, versioning
    • polaris-immutables, polaris-misc-types, polaris-container-spec-helper - shared utilities
    • polaris-floci-aws-testcontainer, polaris-floci-az-testcontainer, polaris-floci-gcp-testcontainer, polaris-minio-testcontainer, polaris-rustfs-testcontainer, polaris-hms-testcontainer - test containers
    • polaris-config-docs-{annotations,generator,site} - reference-doc generation
    • aggregated-license-report - aggregated license report
  • Tests
    • polaris-tests - normative integration tests, reusable downstream

Other top-level directories:

Additional tooling lives in the separate Polaris-Tools repository.

Building and Running

Apache Polaris is built using Gradle with Java 21+ and Docker 27+.

  • ./gradlew build - To build and run tests. Make sure Docker is running, as the integration tests depend on it.
  • ./gradlew assemble - To skip tests.
  • ./gradlew check - To run all checks, including unit tests and integration tests. To run all checks except integration tests, use ./gradlew check -PnoIntegrationTests.
  • ./gradlew run - To run the Polaris server locally; the server is reachable at localhost:8181. This is also suitable for running regression tests, or for connecting with Spark. Set your own credentials by specifying system property ./gradlew run -Dpolaris.bootstrap.credentials=POLARIS,root,secret where:
    • POLARIS is the realm
    • root is the CLIENT_ID
    • secret is the CLIENT_SECRET
    • If credentials are not set, it will use preset credentials POLARIS,root,s3cr3t
  • ./regtests/run_spark_sql.sh - To connect from Spark SQL. Here are some example commands to run in the Spark SQL shell:
create database db1;
show databases;
create table db1.table1 (id int, name string);
insert into db1.table1 values (1, 'a');
select * from db1.table1;
  • env POLARIS_HOST=localhost ./regtests/run.sh - To run regression tests locally, see more options here.

Makefile Convenience Commands

  • make build-server, make build-admin build components and container images
  • make minikube-start-cluster, make minikube-cleanup manage a local minikube cluster
  • make helm-doc-generate, make helm-unittest work with the Helm charts
  • make client-lint, make client-regenerate work with the Python client
  • make install-dependencies-brew install developer prerequisites on macOS

Running in Docker

Build the image locally:

./gradlew \
  :polaris-server:assemble \
  :polaris-server:quarkusAppPartsBuild --rerun \
  -Dquarkus.container-image.build=true

Run the published image:

docker run -p 8181:8181 -p 8182:8182 apache/polaris:latest

The repository also ships docker-compose examples for various configurations. See the Quickstart for details.

Running in Kubernetes

See helm/polaris/README.md.

Configuring Polaris

Servers can be configured in several ways: see the Configuration Guide. Default values live in runtime/defaults/src/main/resources/application.properties.

Building the docs

Docs use Hugo with the Docsy theme. To preview locally:

site/bin/run-hugo-in-docker.sh

See site/README.md for more.

Develocity build scans

Build scans for apache/polaris branch and tag CI runs are published to the ASF Develocity instance at develocity.apache.org when the DEVELOCITY_ACCESS_KEY org secret is available. Pull-request CI publishes to Gradle's public Develocity instance instead.

Local builds publish a scan only when invoked with --scan, and only after you accept Gradle's terms of service. Forks and other CI environments can opt in by setting GRADLE_TOS_ACCEPTED=true. Optional overrides: DEVELOCITY_PROJECT_ID, DEVELOCITY_SERVER, and a DEVELOCITY_ACCESS_KEY GitHub secret if you self-host Develocity.

License

Apache Polaris is under the Apache License Version 2.0. See the LICENSE.

Dépôts similaires
apache/doris

Apache Doris is a real-time analytics and hybrid search database for AI agents.

JavaMavenApache License 2.0olapdatabase
doris.apache.org
15.6k3.9k
trinodb/trino

Official repository of Trino, the distributed SQL query engine for big data, formerly known as PrestoSQL (https://trino.io)

JavaMavenApache License 2.0javapresto
trino.io
13.1k3.7k
StarRocks/starrocks

The world's fastest open query engine for sub-second analytics both on and off the data lakehouse. With the flexibility to support nearly any scenario, StarRocks provides best-in-class performance for multi-dimensional analytics, real-time analytics, and ad-hoc queries. A Linux Foundation project.

JavaMavenApache License 2.0databaseolap
starrocks.io
11.9k2.5k
apache/iceberg

Apache Iceberg

JavaMavenApache License 2.0icebergapache
iceberg.apache.org
9.1k3.4k
Eventual-Inc/Daft

High-performance data engine for AI and multimodal workloads. Process images, audio, video, and structured data at any scale

Rustcrates.ioApache License 2.0machine-learningpython
daft.ai
5.6k524
lakehq/sail

Drop-in Apache Spark replacement written in Rust, unifying batch processing, stream processing, and compute-intensive AI workloads.

Rustcrates.ioApache License 2.0arrowbig-data
lakesail.com
3.2k196
cocopon/iceberg.vim

:antarctica: Bluish color scheme for Vim and Neovim

Vim ScriptMIT Licensevimcolorscheme
cocopon.github.io/iceberg.vim/
2.4k136
timeplus-io/proton

The Fastest Unified Streaming SQL Engine in a Single C++ Binary. ⚡ Millisecond latency. 100+ GB/s throughput. Continuously compute real-time context from streams, logs, metrics, events, and CDC.

C++Apache License 2.0clickhousekakfa
timeplus.com
2.2k110
Mooncake-Labs/pg_mooncake

Real-time analytics on Postgres tables

Rustcrates.ioMIT Licenseanalyticscolumnstore
mooncake.dev
2k71
aws-samples/custom-lens-wa-hub

Provide JSON file template that demonstrate how to create customize Well-Architected reviews using Custom lenses.

MIT No Attributionapigatewaydocumentdb
1.9k112
BemiHQ/BemiDB

Open-source Snowflake & Fivetran alternative, with Postgres compatibility.

GoGo ModulesGNU Affero General Public License v3.0analyticsdata-lakehouse
1.5k43
projectnessie/nessie

Nessie: Transactional Catalog for Data Lakes with Git-like semantics

JavaMavenApache License 2.0dataspark
projectnessie.org
1.5k182