cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

java.io.IOException: Invalid PKCS8 data error when reading data from Google Storage

364488
New Contributor

Databricks workspace is hosted in AWS.  Trying to access data in Google Cloud Platform.

I have followed the instructions here: https://docs.databricks.com/en/connect/storage/gcs.html

I get error: "java.io.IOException: Invalid PKCS8 data." when trying to do a dbutils.fs.ls() to view contents.

Looking online, it looks like there is an issue with the private key needing to be encoded as bytes, but I am not sure how I set this in the cluster spark config.  Example solutions online are using notebook code to the encoding, but that's not an option in the spark config.

2 REPLIES 2

shan_chandra
Honored Contributor III
Honored Contributor III

@364488 - can you please share the spark configs added to the cluster?

Debayan
Esteemed Contributor III
Esteemed Contributor III

Hi, Could you also please share the whole error stack?

 

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.