cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
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
Databricks Employee
Databricks Employee

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

Debayan
Databricks Employee
Databricks Employee

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

 

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now