Documentation Index
Fetch the complete documentation index at: https://docs.risingwave.com/llms.txt
Use this file to discover all available pages before exploring further.
You can use an Apache Hive Metastore as the catalog for your Iceberg tables. You can use this catalog with RisingWave when creating an Iceberg SOURCE, SINK, or CONNECTION (for internal Iceberg tables).
Example
Examples for using a Hive Metastore catalog with internal Iceberg tables, sinks, and sources.
CREATE CONNECTION hive_conn WITH (
type = 'iceberg',
warehouse.path = 's3://my-bucket/warehouse/',
s3.region = 'us-west-2',
s3.access.key = '...',
s3.secret.key = '...',
enable_config_load = false,
catalog.type = 'hive',
catalog.uri = 'thrift://hive-metastore:9083'
);
SET iceberg_engine_connection = 'public.hive_conn';
-- `commit_checkpoint_interval` controls Iceberg commit frequency. Default: about every 60 seconds; set to 1 for faster commits and visibility.
CREATE TABLE my_internal_iceberg_table (
id INT PRIMARY KEY,
name VARCHAR
)
WITH (commit_checkpoint_interval = 1)
ENGINE = iceberg;
CREATE SINK my_hive_sink FROM my_mv WITH (
connector = 'iceberg',
type = 'upsert',
primary_key = 'id',
catalog.type = 'hive',
catalog.uri = 'thrift://hive-metastore:9083',
warehouse.path = 's3://my-bucket/warehouse/',
s3.region = 'us-west-2',
s3.access.key = '...',
s3.secret.key = '...',
database.name = 'my_db',
create_table_if_not_exists = 'true',
table.name = 'my_table'
);
CREATE SOURCE my_hive_source
WITH (
connector = 'iceberg',
catalog.type = 'hive',
catalog.uri = 'thrift://hive-metastore:9083',
warehouse.path = 's3://my-bucket/warehouse/',
s3.region = 'us-west-2',
s3.access.key = '...',
s3.secret.key = '...',
database.name = 'my_db',
table.name = 'my_table'
);