E-MapReduce
本文为您介绍如何通过 Doris 实例访问 Iceberg Catalog。
注意
使用的 Doris 版本有以下限制要求:
创建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。详情请参见 Doris 访问 LAS Catalog。
切换Catalog,并查看数据库
switch ${已创建catalog名称}; show databases; use ${数据库名};
查询已有 Paimon 表
show tables; select * from ${表名称};