cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Machine Learning
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Access denied error to S3 bucket while running Kinesis spark streaming.

Avi711
New Contributor III

I get this below error while trying to simulate kinesis streams as mentioned in Databricks 

documentation at https://docs.databricks.com/getting-started/streaming.html

Error:

java.nio.file.AccessDeniedException:

Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID:

com.amazonaws.services.s3.model.AmazonS3Exception: Access Denied; request: PUT https://..

Does anyone faced this issue. Any pointers will be very helpful.

1 ACCEPTED SOLUTION

Accepted Solutions

Avi711
New Contributor III

It was an access issue to S3 bucket, resolved by providing appropriate access. Thanks

View solution in original post

3 REPLIES 3

Pat
Honored Contributor III

Hi @Aviraj Madkaikarโ€‹ ,

Access Denied; request: PUT... . It looks like you don't have permission to write to the location.

Do you use .checkpoint or write data somewhere?

Avi711
New Contributor III

It was an access issue to S3 bucket, resolved by providing appropriate access. Thanks

jsuarezg
New Contributor II

If you do 

spark.sparkContext._jsc.hadoopConfiguration().set("fs.s3a.access.key", AWS_ACCESS_KEY_ID) + secret with any other secret that has less access than your default one this sometimes happens, so running those commands but with your normal secret will fix the issue
Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.