hive catalog 如何配置才能支持外部 hive 表写入?

为了更快的定位您的问题,请提供以下信息,谢谢
【详述】参考 https://docs.starrocks.io/zh/docs/data_source/catalog/hive_catalog/ 配置了 hive catalog,基础配置不允许写入数据到外部 hive 表,有没有详细的配置文档了解如何配置,以支持写入数据到外部 hive 表
【背景】做过哪些操作?
insert overwrite dau_hourly_test select ‘2025-01-01 11:00:00’,1,2,3;

ERROR 1064 (HY000): Getting analyzing error. Detail message: Only support to write hive managed table, tableType: EXTERNAL_TABLE.

【业务影响】无法写入数据到外部 hive 表
【是否存算分离】是
【StarRocks版本】例如:3.3.5
【集群规模】例如:3fe(1 follower+2observer)+3-30 cn(fe与cn)
【机器信息】aws r7g 4x
【联系方式】xlrei@163.com
【附件】

完整的操作步骤写一下

操作步骤:

  1. 使用 trino 建 hive 表比如:
    CREATE TABLE user_test (
    value bigint
    )
    WITH (
    format = ‘PARQUET’,
    external_location = ‘s3://data-test/user_test’
    );

  2. 使用 starrocks 插入数据:
    insert into user_test6 select 1;
    报错:
    ERROR 1064 (HY000): Getting analyzing error. Detail message: Only support to write hive managed table, tableType: EXTERNAL_TABLE.


补充:直接通过 starrocks 建 hive 表没有该问题

试一下开启 enable_write_hive_external_table这个参数,在session级别就行

1赞

@xlrei

是的,问题解决了,非常感谢!