Docker Compose 上的 Trino、Hive Metastore、MinIo 无法创建外部路径 s3a:

问题描述 投票:0回答:1

我正在使用 MinIO、Hive Metastore 和 Trino 在 Docker 上使用所有官方镜像的最新版本进行 PoC。如果需要,我可以分享我的 /opt/hive/metastore-site.xml 和 /etc/trino/catalog/hive.properties。

我已将 MinIO 存储桶访问权限设置为公共读/写,并且我已在 HMS 和 Trino 中设置 MinIO 的管理令牌。

我在这个错误上被困了一个星期,我尝试了很多可能性,但没有任何效果。

在/opt/hive/metastore-site.xml中

<property>
    <name>hive.security.metastore.authorization.manager</name>
    <value>org.apache.hadoop.hive.ql.security.authorization.StorageBasedAuthorizationProvider</value>
</property>

命令行

[trino@da599e9df13c /]$ trino --catalog hive
trino> create schema utm;
Query 20240426_232050_00000_hjrys failed: Failed to create
 external path s3a://utm/utm.db for database utm. This may 
result in access not being allowed if the StorageBasedAuthorizationProvider 
is enabled: null
hive trino
1个回答
0
投票

已解决,包含在metastore-site.xml中

hive.metastore.pre.event.listeners org.apache.hadoop.hive.ql.security.authorization.AuthorizationPreEventListener
© www.soinside.com 2019 - 2024. All rights reserved.