文档

Dataphin即席查询中创建OSS外部表报错“ODPS-0130071:[1,1] Semantic analysis exception - external table checking failure”

更新时间:
一键部署

问题描述

Dataphin即席查询中创建OSS外部表报错“ODPS-0130071:[1,1] Semantic analysis exception - external table checking failure”。

完整的报错信息如下:

Process:com.aliyun.odps.OdpsException: ODPS-0130071:[1,1] Semantic analysis exception - external table checking failure, error message: java.lang.RuntimeException: {"RequestId":"5A752C6B-D0BE-528C-9553-700588C3CF8E","HostId":"sts.aliyuncs.com","Code":"EntityNotExist.Role","Message":"The role not exists: acs:ram::1869689884432585:role/aliyunodpsdefaultrole. ","Recommend":"https://next.api.aliyun.com/troubleshoot?q=EntityNotExist.Role&product=Sts"}
 at com.aliyun.odps.meta2.util.StsClient.assumeRoleWithServiceIdentityNoRetry(StsClient.java:122)
 at com.aliyun.odps.meta2.util.StsClient.assumeRoleWithServiceIdentity(StsClient.java:84)
 at com.aliyun.odps.compiler.ExternalTableChecker$LocationChecker.annotateLocationWithSTSToken(ExternalTableChecker.java:616)
 at com.aliyun.odps.compiler.ExternalTableChecker$LocationChecker.create(ExternalTableChecker.java:580)
 at com.aliyun.odps.compiler.ExternalTableChecker.checkLocation(ExternalTableChecker.java:531)

问题原因

MaxCompute外部表直接访问OSS的数据,需要事先将OSS的数据相关权限赋予MaxCompute的访问账号,该问题是因为没有进行授权导致。

解决方案

参考“更多信息”中“OSS的STS模式授权”进行授权之后,问题解决。

更多信息

OSS的STS模式授权

适用于

  • Dataphin
  • 本页导读
文档反馈