大数据组件- 5. 安装 starrocks

4 阅读1分钟

StarRocks 作为 Iceberg 表的计算资源,核心是:存算分离、湖仓一体——Iceberg 负责数据存储(S3/HDFS + 开放表格式),StarRocks 负责高性能 SQL 分析、高并发查询、多表关联与物化视图加速,数据零迁移、一份数据多引擎共享StarRocks。

helm repo add starrocks https://starrocks.github.io/starrocks-kubernetes-operator

helm repo update

#拉取values.yaml
helm show values starrocks/kube-starrocks > my-values.yaml


helm install -f my-values.yaml starrocks starrocks/kube-starrocks -n nexus --create-namespace

📎my-values.yaml


CREATE EXTERNAL CATALOG iceberg
PROPERTIES
(
    "type" = "iceberg",
    "iceberg.catalog.type" = "rest",
    "iceberg.catalog.uri" = "http://gravitino-iceberg-rest-server.gravitino.svc.cluster.local:9001/iceberg",
    "iceberg.catalog.vended-credentials-enabled" = "false",
    -- 保留 S3 凭证配置
    "aws.s3.endpoint" = "http://10.0.0.2:9000",
    "aws.s3.region" = "us-east-1",
    "aws.s3.access_key" = "rustfsadmin",
    "aws.s3.secret_key" = "rustfsadmin",
    "aws.s3.enable_path_style_access" = "true",
    "aws.s3.enable_ssl" = "false"
);

SHOW DATABASES;

drop catalog iceberg;

SHOW DATABASES FROM iceberg;

SHOW TABLES FROM iceberg.ods;


select * from iceberg.ods.ods_user_info