阿里云首页

Dataphin代码任务创建表失败报错:"ODPS-0410051:Invalid credentials - accessKeyId not found"

问题描述

Dataphin代码任务创建表失败报错:"ODPS-0410051:Invalid credentials - accessKeyId not found"。

Tracking SQL Task [1/1] Process:com.aliyun.odps.OdpsException: ODPS-0410051:Invalid credentials - accessKeyId not found: xxxxx
 at com.aliyun.odps.rest.RestClient.handleErrorResponse(RestClient.java:382)
 at com.aliyun.odps.rest.RestClient.request(RestClient.java:318)
 at com.aliyun.odps.rest.RestClient.request(RestClient.java:274)
 at com.aliyun.odps.rest.RestClient.stringRequest(RestClient.java:250)
 at com.aliyun.odps.Instances.create(Instances.java:390)
 at com.aliyun.odps.Instances.create(Instances.java:325)
 at com.aliyun.odps.Instances.create(Instances.java:290)
 at com.aliyun.odps.Instances.create(Instances.java:272)
 at com.aliyun.odps.Instances.create(Instances.java:254)
 at com.aliyun.odps.Instances.create(Instances.java:146)
 at com.alibaba.dt.oneservice.sdk.OdpsTask.runTask(OdpsTask.java:108)
 at com.alibaba.dt.oneservice.sdk.task.BaseOsTask.run(BaseOsTask.java:111)
 at com.alibaba.dt.oneservice.sdk.job.OsJob.run(OsJob.java:185)
 at com.alibaba.dt.oneservice.sdk.executor.BaseOsExecutor.lambda$run$4(BaseOsExecutor.java:42)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:627)
 at java.lang.Thread.run(Thread.java:882)
Caused by: com.aliyun.odps.rest.RestException: RequestId=61692FC91FC7E7257C5267A9,Code=AccessKeyIdNotFound,Message=ODPS-0410051:Invalid credentials - accessKeyId not found: xxxxx
 ... 19 more
Job failed
2021-10-15 15:37:46 No outputData produced.

问题原因

计算源的AK认证信息无效导致的。

解决方案

修改计算源的认证信息,重新认证即可。

适用于

  • Dataphin
首页 Dataphin代码任务创建表失败报错:"ODPS-0410051:Invalid credentials - accessKeyId not found"