Amazon s3a returns 400 Bad Request with Spark

后端 未结 3 999
一整个雨季
一整个雨季 2020-12-02 01:33

For checkout purpose I try to set up an Amazon S3 bucket as checkpoint file.

val checkpointDir = \"s3a://bucket-name/checkpoint.txt\"
val sc = new SparkConte         


        
3条回答
  •  -上瘾入骨i
    2020-12-02 02:37

    I was facing the same issue when running spark locally, for me reason was SIGV4 was not getting set, this code helped me:

    import com.amazonaws.SDKGlobalConfiguration
    System.setProperty(SDKGlobalConfiguration.ENABLE_S3_SIGV4_SYSTEM_PROPERTY, "true")
    

提交回复
热议问题