gpt4 book ai didi

azure - 使用 Azure 存储创建外部表

转载 作者:可可西里 更新时间:2023-11-01 16:35:35 27 4
gpt4 key购买 nike

我正在尝试使用以下方法创建下表,但收到错误消息:

org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: HiveAccessControlException Permission denied: user [admin] does not have [ALL] privilege on [wasb://mycontainer@smystg.blob.core.windows.net]

我已经将带有存储键的属性添加到 core-site.xml 并且:

<property>
<name>fs.azure.secure.mode</name>
<value>true</value>
</property>
<property>
<name>fs.azure.cred.service.urls</name>
<value>{URL}</value>
</property>

这是我的hql:

Create external table test(
id int,
name string)
stored as ORC
location 'wasb://mycontainer@mystg.blob.core.windows.net';
Any ideas?

最佳答案

您可能需要更新 azure blob 存储权限

“容器 > [容器] > [blob]在 Blob Properties 的 Metadata 部分,将键 hdi_permission “owner” 值修改为执行 Hive 进程的用户。 https://community.hortonworks.com/questions/185859/how-to-create-hive-table-with-azure-wasb-storage.html

关于azure - 使用 Azure 存储创建外部表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53668437/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com