开发者社区 > 大数据与机器学习 > 正文

DataWorks创建表失败:please check ram config or

DataWorks创建表失败:please check ram config or into access id, key into location property of DDL (not recommanded). DDL execute error, OdpsException: ODPS-0130071:[1,1] Semantic analysis exception - external table checking failure, error message: java.lang.RuntimeException: {"RequestId":"0FB1876E-A768-5CCE-B2FB-EC084C6BC346","HostId":"sts.aliyuncs.com","Code":"EntityNotExist.Role","Message":"The role not exists: acs:ram::1267257612131350: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) at com.aliyun.odps.compiler.ExternalTableChecker.check(ExternalTableChecker.java:109) at com.aliyun.odps.compiler.TypeChecker.checkExternalTable(TypeChecker.java:1389) at com.aliyun.odps.compiler.TypeChecker.visit(TypeChecker.java:1277) at com.aliyun.odps.compiler.TypeChecker.visit(TypeChecker.java:157) at com.aliyun.odps.compiler.CreateTableStatement.accept(CreateTableStatement.java:268) at com.aliyun.odps.compiler.TreeScanner.scan(TreeScanner.java:1601) at com.aliyun.odps.compiler.TypeChecker.visit(TypeChecker.java:2536) at com.aliyun.odps.compiler.TypeChecker.visit(TypeChecker.java:157) at com.aliyun.odps.compiler.CompoundStatement.accept(CompoundStatement.java:52) at com.aliyun.odps.compiler.TreeScanner.scan(TreeScanner.java:1601) at com.aliyun.odps.compiler.TypeChecker.visit(TypeChecker.java:2536) at com.aliyun.odps.compiler.TypeChecker.visit(TypeChecker.java:157) at com.aliyun.odps.compiler.CompoundStatement.accept(CompoundStatement.java:52) at com.aliyun.odps.compiler.TreeScanner.scan(TreeScanner.java:1601) at com.aliyun.odps.compiler.TypeChecker.visit(TypeChecker.java:420) at com.aliyun.odps.compiler.TypeChecker.visit(TypeChecker.java:157) at com.aliyun.odps.compiler.Script.accept(Script.java:117) at com.aliyun.odps.compiler.TreeScanner.scan(TreeScanner.java:1601) at com.aliyun.odps.compiler.TypeChecker.check(TypeChecker.java:376) at com.aliyun.odps.compiler.OdpsQlCompiler.compile(OdpsQlCompiler.java:199) at com.aliyun.odps.compiler.OdpsQlCompiler.compile(OdpsQlCompiler.java:113) at com.aliyun.odps.sqltask.OdpsCompilerWrapper.parse(OdpsCompilerWrapper.java:199) at com.aliyun.odps.sqltask.OdpsCompilerWrapper.parse(OdpsCompilerWrapper.java:150) at com.aliyun.odps.sqltask.task.SqlTaskBase.doCompile(SqlTaskBase.java:117) at com.aliyun.odps.sqltask.task.SqlTaskBase.compile(SqlTaskBase.java:104) at com.aliyun.odps.sqltask.task.DDLTask.handleInternal(DDLTask.java:46) at com.aliyun.odps.sqltask.task.SqlTaskBase.handle(SqlTaskBase.java:77) at com.aliyun.odps.sqltask.SqlTaskDriver.execute(SqlTaskDriver.java:137) at com.aliyun.odps.sqltask.SqlTaskDriver.run(SqlTaskDriver.java:202) Direct error message: 执行SQL失败:SQL:create external table ds_229244678675550959_1681879847202_external 创建外部表报错创建表失败:please check ram config or into access id, key into location property of DDL (not recommanded). DDL execute error, OdpsException: ODPS-0130071:[1,1] Semantic analysis exception - external table checking failure, error message: java.lang.RuntimeException: {"RequestId":"0FB1876E-A768-5CCE-B2FB-EC084C6BC346","HostId":"sts.aliyuncs.com","Code":"EntityNotExist.Role","Message":"The role not exists: acs:ram::1267257612131350: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) at com.aliyun.odps.compiler.ExternalTableChecker.check(ExternalTableChecker.java:109) at com.aliyun.odps.compiler.TypeChecker.checkExternalTable(TypeChecker.java:1389) at com.aliyun.odps.compiler.TypeChecker.visit(TypeChecker.java:1277) at com.aliyun.odps.compiler.TypeChecker.visit(TypeChecker.java:157) at com.aliyun.odps.compiler.CreateTableStatement.accept(CreateTableStatement.java:268) at com.aliyun.odps.compiler.TreeScanner.scan(TreeScanner.java:1601) at com.aliyun.odps.compiler.TypeChecker.visit(TypeChecker.java:2536) at com.aliyun.odps.compiler.TypeChecker.visit(TypeChecker.java:157) at com.aliyun.odps.compiler.CompoundStatement.accept(CompoundStatement.java:52) at com.aliyun.odps.compiler.TreeScanner.scan(TreeScanner.java:1601) at com.aliyun.odps.compiler.TypeChecker.visit(TypeChecker.java:2536) at com.aliyun.odps.compiler.TypeChecker.visit(TypeChecker.java:157) at com.aliyun.odps.compiler.CompoundStatement.accept(CompoundStatement.java:52) at com.aliyun.odps.compiler.TreeScanner.scan(TreeScanner.java:1601) at com.aliyun.odps.compiler.TypeChecker.visit(TypeChecker.java:420) at com.aliyun.odps.compiler.TypeChecker.visit(TypeChecker.java:157) at com.aliyun.odps.compiler.Script.accept(Script.java:117) at com.aliyun.odps.compiler.TreeScanner.scan(TreeScanner.java:1601) at com.aliyun.odps.compiler.TypeChecker.check(TypeChecker.java:376) at com.aliyun.odps.compiler.OdpsQlCompiler.compile(OdpsQlCompiler.java:199) at com.aliyun.odps.compiler.OdpsQlCompiler.compile(OdpsQlCompiler.java:113) at com.aliyun.odps.sqltask.OdpsCompilerWrapper.parse(OdpsCompilerWrapper.java:199) at com.aliyun.odps.sqltask.OdpsCompilerWrapper.parse(OdpsCompilerWrapper.java:150) at com.aliyun.odps.sqltask.task.SqlTaskBase.doCompile(SqlTaskBase.java:117) at com.aliyun.odps.sqltask.task.SqlTaskBase.compile(SqlTaskBase.java:104) at com.aliyun.odps.sqltask.task.DDLTask.handleInternal(DDLTask.java:46) at com.aliyun.odps.sqltask.task.SqlTaskBase.handle(SqlTaskBase.java:77) at com.aliyun.odps.sqltask.SqlTaskDriver.execute(SqlTaskDriver.java:137) at com.aliyun.odps.sqltask.SqlTaskDriver.run(SqlTaskDriver.java:202) Direct error message: 执行SQL失败:SQL:create external table ds_229244678675550959_1681879847202_external

展开
收起
真的很搞笑 2023-04-25 15:29:26 141 0
1 条回答
写回答
取消 提交回答
  • 是角色模式登录dataworks操作的吗 还是登录的odpscmd ,看报错是执行的role已经不存在 The role not exists: acs:ram::1267257612131350:role/aliyunodpsdefaultrole. ,此回答整理自钉群“DataWorks交流群(答疑@机器人)”

    2023-04-27 13:22:03
    赞同 展开评论 打赏

大数据领域前沿技术分享与交流,这里不止有技术干货、学习心得、企业实践、社区活动,还有未来。

相关产品

  • 大数据开发治理平台 DataWorks
  • 相关电子书

    更多
    DataWorks数据集成实时同步最佳实践(含内测邀请)-2020飞天大数据平台实战应用第一季 立即下载
    DataWorks调度任务迁移最佳实践-2020飞天大数据平台实战应用第一季 立即下载
    基于DataWorks数据服务构建疫情大屏-2020飞天大数据平台实战应用第一季 立即下载

    相关实验场景

    更多