文档首页> 数据湖探索 DLI> 常见问题> Spark作业相关问题> 作业运维报错> Spark作业访问OBS数据时报ResponseCode: 403和ResponseStatus: Forbidden错误
更新时间:2022-09-29 GMT+08:00
分享

Spark作业访问OBS数据时报ResponseCode: 403和ResponseStatus: Forbidden错误

问题现象

Spark程序访问OBS数据时上报如下错误。

Caused by: com.obs.services.exception.ObsException: Error message:Request Error.OBS servcie Error Message. -- ResponseCode: 403, ResponseStatus: Forbidden

解决方案

Spark程序访问OBS数据时,需要通过配置AK、SK的访问进行访问。具体访问方式可以参考:通用队列操作OBS表如何设置AK/SK

分享:

作业运维报错 所有常见问题

more