You need to enable JavaScript to run this app.
E-MapReduce

E-MapReduce

复制全文
基础使用
Doris 实例访问 Iceberg Catalog
复制全文
Doris 实例访问 Iceberg Catalog

本文为您介绍如何通过 Doris 实例访问 Iceberg Catalog。

注意

使用的 Doris 版本有以下限制要求:

  • 2.x 版本:2.1.11及以上版本的Doris开始支持。
  • 3.x 版本:3.0.8及以上版本的Doris开始支持。
  1. 创建Catalog。

    CREATE CATALOG iceberg_hms_on_s3_catalog PROPERTIES (
           'type' = 'iceberg',
           'iceberg.catalog.type' = 'hms',
           'hive.metastore.uris' = '<hms_url>',
           'las.tos.endpoint' = '<tos_bucket_warehouse>',
           'aws.s3.region'= 'cn-beijing',
           'aws.s3.endpoint' = '<tos_s3_endpoint>',
           'aws.s3.access_key' = '<ak>',
           'aws.s3.secret_key' = '<sk>'
       );
    

    其中:

    • las.tos.endpoint :为 proton 访问 tos 的 endpoint。
    • aws.s3.endpoint:为后端访问 s3 的 endpoint。
  2. 切换Catalog,并查看数据库

    switch ${已创建catalog名称};
    show databases;
    use ${数据库名};
    
  3. 查询已有 Paimon 表

    show tables;
    select * from ${表名称};
    
最近更新时间:2026.03.31 20:34:13
这个页面对您有帮助吗?
有用
有用
无用
无用