github-actions[bot] commented on issue #12259: URL: https://github.com/apache/dolphinscheduler/issues/12259#issuecomment-1272286169
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened Use the code of branch 3.1.0, compile the Docker image, deploy it on the k8s, and configure RESOURCE_ STORAGE_ TYPE=S3。 After startup, the following errors are found in the alter and master pod: java.lang.NoClassDefFoundError: com/amazonaws/services/s3/model/AmazonS3Exception Cause analysis: The compiled jar package of the alter and master modules lacks aws-java-sdk-s3-12.160.jar. When aws-java-sdk-s3-12.160.jar is added and the image is repackaged and deployed, the bad pod starts normally, and the dolphin scheduler can normally read and write the file resources stored on S3. 使用3.1.0分支的代码,编译docker镜像后部署在k8s上,并配置RESOURCE_STORAGE_TYPE=S3。启动后发现alter和master pod报如下错误: java.lang.NoClassDefFoundError: com/amazonaws/services/s3/model/AmazonS3Exception 原因分析:编译出的alter和master模块的jar包中缺少aws-java-sdk-s3-1.12.160.jar。 当添加aws-java-sdk-s3-1.12.160.jar后重新打包镜像并部署后,报错的pod正常启动,且dolphin scheduler可以正常读写S3上存储的文件资源。 ### What you expected to happen The compiled jar package of the alter and master modules lacks aws-java-sdk-s3-1.12.160.jar. 编译出的alter和master模块的jar包中,应该有aws-java-sdk-s3-1.12.160.jar ### How to reproduce Use the code of branch 3.1.0, compile the Docker image, deploy it on the k8s, and configure RESOURCE_ STORAGE_ TYPE=S3。 ### Anything else _No response_ ### Version 3.1.x ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
