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?

 

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group