Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 98 additions & 0 deletions docs/formats/hudi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
---
title: "Hudi"
url: hudi-format
aliases:
- "formats/hudi"
menu:
main:
parent: Formats
weight: 600
---
<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-->
# Hudi Format

Amoro can register existing [Apache Hudi](https://hudi.apache.org/) tables and display their metadata.

## Prerequisites

Use an AMS build that includes the Hudi format module. For source builds, enable `support-hudi-format` or `support-all-formats`. Check that the selected distribution includes the module.

The examples below connect existing tables or datasets. Replace example paths and service addresses with resources reachable by AMS, and configure storage access through [Managing Catalogs](../managing-catalogs/).

## Registering Hudi Catalogs

To browse existing Hudi tables, select `filesystem` or `hive` as the metastore type, then set `table-formats=HUDI` in Catalog Properties. Selecting the metastore and setting Catalog Properties are separate steps; an omitted `table-formats` selects a different default format.

### Filesystem Metastore

Select `filesystem` as the metastore type (legacy `hadoop` is normalized to `filesystem`). The catalog requires `warehouse` pointing to the Hudi root.
Layout: `warehouse/database/table/.hoodie`. Local storage paths must be reachable by the AMS process.

Catalog Properties:

```json
{
"table-formats": "HUDI",
"warehouse": "/path/to/hudi/warehouse"
}
```

### Hive Metastore

Hudi Hive catalogs use Hadoop configuration plus an uploaded `hive-site.xml` containing `hive.metastore.uris` (a raw catalog property `hive.metastore.uris` is not read by the Hudi Hive implementation). Upload `hive-site.xml`, plus `core-site.xml` and `hdfs-site.xml` as needed for storage, through [Managing Catalogs](../managing-catalogs/). A minimal `hive-site.xml`:

```xml
<configuration>
<property>
<name>hive.metastore.uris</name>
<value>thrift://hive-metastore-host:9083</value>
</property>
</configuration>
```

Catalog Properties:

```json
{
"table-formats": "HUDI"
}
```

## Browsing Hudi Tables

After registering the catalog, AMS lists existing Hudi tables. The following metadata is available:

- Schema (from Avro schema)
- Table properties
- Files (latest base and log files)
- Timeline (commits)
- Native compaction and clustering metadata (display only; AMS does not schedule these)

Not available: DDL history, tags, consumer information, and AMS-managed optimizing processes.

## Example Filesystem Layout

An existing Hudi dataset can be laid out like:

```
/path/to/hudi/warehouse/
└── mydb/
└── mytable/
└── .hoodie/
└── hoodie.properties
```
102 changes: 102 additions & 0 deletions docs/formats/lance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
---
title: "Lance"
url: lance-format
aliases:
- "formats/lance"
menu:
main:
parent: Formats
weight: 700
---
<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-->
# Lance Format

Amoro can register existing [Lance](https://lancedb.github.io/lance/) datasets and display their metadata.

## Prerequisites

Use an AMS build that includes the Lance format module. For source builds, enable `support-lance-format` or `support-all-formats`. Check that the selected distribution includes the module.

The examples below connect existing tables or datasets. Replace example paths and service addresses with resources reachable by AMS, and configure storage access through [Managing Catalogs](../managing-catalogs/).

## Registering Lance Catalogs

Lance catalogs must set `table-formats=LANCE` to avoid default format fallback. Choose metastore type (`filesystem`, `hive`, or `rest`) separately from properties.

### Filesystem Metastore (Directory)

Uses a root directory containing Lance datasets. All tables live in the `default` database; creating or dropping databases is unsupported.
Filesystem layout: `warehouse/example.lance`. The `warehouse` property is required. Local paths must be reachable by AMS.

Catalog Properties:

```json
{
"table-formats": "LANCE",
"warehouse": "/path/to/lance/warehouse"
}
```

### Hive Metastore

Lance Hive catalogs require `warehouse` (must not be `hdfs` scheme) and the raw property `uri` for the Hive metastore. The implementation writes `hive.metastore.uris` internally. Upload Hadoop configuration files including `hive-site.xml` via the Managing Catalogs workflow. Pure Lance Hive catalogs reject Kerberos authentication.

Catalog Properties:

```json
{
"table-formats": "LANCE",
"warehouse": "s3://bucket/path",
"uri": "thrift://hive-metastore-host:9083"
}
```

### REST Metastore

Lance REST catalogs require the raw property `uri`. The endpoint must implement the Lance Namespace REST protocol, not just an Iceberg REST endpoint. Use actual reachable service addresses.

Catalog Properties:

```json
{
"table-formats": "LANCE",
"uri": "http://lance-rest-host:8080"
}
```

## Browsing Lance Datasets

After registering, AMS discovers existing Lance datasets. For filesystem catalogs, datasets are found as `warehouse/<name>.lance`. For Hive and REST, the namespace is queried.

Displayed metadata includes:

- Schema (Arrow fields)
- Files
- Dataset versions (like snapshots)
- Tags
- Branches

Not available: DDL history, partitions, optimizing tasks, consumer information.

## Example Filesystem Layout

```
/path/to/lance/warehouse/
└── example.lance/
└── (Lance dataset files)
```
29 changes: 21 additions & 8 deletions docs/formats/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,32 @@ menu:
Table format (aka. format) was first proposed by Iceberg, which can be described as follows:

- It defines the relationship between tables and files, and any engine can query and retrieve data files according to the table format.
- New formats such as Iceberg/Delta/Hudi further define the relationship between tables and snapshots, and the relationship between snapshots and files.
All write operations on the table will generate new snapshots, and all read operations on the table are based on snapshots.
- New formats such as Iceberg/Delta/Hudi further define the relationship between tables and snapshots, and the relationship between snapshots and files.
All write operations on the table will generate new snapshots, and all read operations on the table are based on snapshots.
Snapshots bring MVCC, ACID, and Transaction capabilities to data lakes.

In addition, new table formats such as [Iceberg](https://Iceberg.apache.org/) also provide many advanced features such as schema evolve, hidden partition, and data skip.
[Hudi](https://hudi.apache.org/) and [Delta](https://delta.io/) may have some differences in specific functions, but we see that the standard of table formats is gradually established with the functional convergence of these three open-source projects in the past two years.

For users, the design goal of Amoro is to provide an out-of-the-box data lake system. Internally, Amoro's design philosophy is to use different table formats as storage engines for data lakes.
For users, the design goal of Amoro is to provide an out-of-the-box data lake system. Internally, Amoro's design philosophy is to use different table formats as storage engines for data lakes.
This design pattern is more common in open-source systems such as MySQL and ClickHouse.

Currently, Amoro mainly provides the following four table formats:
Currently, Amoro supports the following table formats:

- **Iceberg format:** Users can directly entrust their Iceberg tables to Amoro for maintenance, so that users can not only use all the functions of Iceberg tables, but also enjoy the performance and stability improvements brought by Amoro.
- **Mixed-Iceberg format:** Amoro provides a set of more optimized formats for streaming update scenarios on top of the Iceberg format. If users have high performance requirements for streaming updates or have demands for CDC incremental data reading functions, they can choose to use the Mixed-Iceberg format.
- **Mixed-Hive format:** Many users do not want to affect the business originally built on Hive while using data lakes. Therefore, Amoro provides the Mixed-Hive format, which can upgrade Hive tables to Mixed-Hive format only through metadata migration, and the original Hive tables can still be used normally. This ensures business stability and benefits from the advantages of data lake computing.
- **Paimon format:** Amoro supports displaying metadata information in the Paimon format, including Schema, Options, Files, Snapshots, DDLs, and Compaction information.
- **[Iceberg format](../iceberg-format/):** Users can directly entrust their Iceberg tables to Amoro for maintenance, so that users can not only use all the functions of Iceberg tables, but also enjoy the performance and stability improvements brought by Amoro. Automatic maintenance and self-optimizing apply to V1/V2 tables with the required settings; AMS maintenance and optimizing are unavailable for V3, and metadata reads depend on the features supported by the bundled Iceberg reader (see [version compatibility](../iceberg-format/#format-version-compatibility)).
- **[Mixed-Iceberg format](../mixed-iceberg-format/):** Amoro provides a set of more optimized formats for streaming update scenarios on top of the Iceberg format. If users have high performance requirements for streaming updates or have demands for CDC incremental data reading functions, they can choose to use the Mixed-Iceberg format.
- **[Mixed-Hive format](../mixed-hive-format/):** Many users do not want to affect the business originally built on Hive while using data lakes. Therefore, Amoro provides the Mixed-Hive format, which can upgrade Hive tables to Mixed-Hive format only through metadata migration, and the original Hive tables can still be used normally. This ensures business stability and benefits from the advantages of data lake computing.
- **[Paimon format](../paimon-format/):** Amoro supports displaying metadata information in the Paimon format, including Schema, Options, Files, Snapshots, DDLs, and Compaction information. Native Paimon compaction metadata is displayed; AMS does not schedule that work.
- **[Hudi format](../hudi-format/):** Amoro supports displaying metadata information for existing Hudi tables, including Schema, Files, Timeline, and native compaction/clustering metadata. Native Hudi compaction/clustering metadata is displayed; AMS does not schedule that work.
- **[Lance format](../lance-format/):** Amoro supports displaying metadata information for existing Lance datasets, including Schema, Files, Dataset Versions, Tags, and Branches.

| Format | Metadata Browsing | AMS Self-Optimizing | Built-in AMS Maintenance |
|---|---|---|---|
| Iceberg | Table, snapshot and file metadata | V1/V2 only, when configured | V1/V2 only, when configured |
| Mixed-Iceberg | Table, snapshot and file metadata | Yes, when configured | Format-specific actions, when enabled |
| Mixed-Hive | Table, snapshot and file metadata | Yes, when configured | Format-specific actions, when enabled |
| Paimon | Schema, Options, Files, Snapshots, DDLs, Compaction Info | No (native compaction displayed only) | No |
| Hudi | Schema, Files, Timeline, Native Compaction/Clustering Metadata | No (native compaction/clustering displayed only) | No |
| Lance | Schema, Files, Dataset Versions, Tags, Branches | No | No |

Built-in maintenance means the AMS actions available for that format and enabled by server and table settings; individual actions differ between formats. Displaying native Paimon or Hudi compaction information does not make AMS schedule those jobs.
Loading