<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic java.io.IOException: Invalid PKCS8 data error when reading data from Google Storage in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/java-io-ioexception-invalid-pkcs8-data-error-when-reading-data/m-p/58197#M31044</link>
    <description>&lt;P&gt;Databricks workspace is hosted in AWS.&amp;nbsp; Trying to access data in Google Cloud Platform.&lt;/P&gt;&lt;P&gt;I have followed the instructions here:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/connect/storage/gcs.html" target="_blank"&gt;https://docs.databricks.com/en/connect/storage/gcs.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I get error: "&lt;SPAN&gt;java.io.IOException: Invalid PKCS8 data." when trying to do a dbutils.fs.ls() to view contents.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;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.&amp;nbsp; Example solutions online are using notebook code to the encoding, but that's not an option in the spark config.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jan 2024 17:56:30 GMT</pubDate>
    <dc:creator>364488</dc:creator>
    <dc:date>2024-01-22T17:56:30Z</dc:date>
    <item>
      <title>java.io.IOException: Invalid PKCS8 data error when reading data from Google Storage</title>
      <link>https://community.databricks.com/t5/data-engineering/java-io-ioexception-invalid-pkcs8-data-error-when-reading-data/m-p/58197#M31044</link>
      <description>&lt;P&gt;Databricks workspace is hosted in AWS.&amp;nbsp; Trying to access data in Google Cloud Platform.&lt;/P&gt;&lt;P&gt;I have followed the instructions here:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/connect/storage/gcs.html" target="_blank"&gt;https://docs.databricks.com/en/connect/storage/gcs.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I get error: "&lt;SPAN&gt;java.io.IOException: Invalid PKCS8 data." when trying to do a dbutils.fs.ls() to view contents.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;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.&amp;nbsp; Example solutions online are using notebook code to the encoding, but that's not an option in the spark config.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 17:56:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/java-io-ioexception-invalid-pkcs8-data-error-when-reading-data/m-p/58197#M31044</guid>
      <dc:creator>364488</dc:creator>
      <dc:date>2024-01-22T17:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: java.io.IOException: Invalid PKCS8 data error when reading data from Google Storage</title>
      <link>https://community.databricks.com/t5/data-engineering/java-io-ioexception-invalid-pkcs8-data-error-when-reading-data/m-p/58212#M31054</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/82653"&gt;@364488&lt;/a&gt;&amp;nbsp;- can you please share the spark configs added to the cluster?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 00:05:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/java-io-ioexception-invalid-pkcs8-data-error-when-reading-data/m-p/58212#M31054</guid>
      <dc:creator>shan_chandra</dc:creator>
      <dc:date>2024-01-23T00:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: java.io.IOException: Invalid PKCS8 data error when reading data from Google Storage</title>
      <link>https://community.databricks.com/t5/data-engineering/java-io-ioexception-invalid-pkcs8-data-error-when-reading-data/m-p/58213#M31055</link>
      <description>&lt;P&gt;Hi, Could you also please share the whole error stack?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 03:29:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/java-io-ioexception-invalid-pkcs8-data-error-when-reading-data/m-p/58213#M31055</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2024-01-23T03:29:01Z</dc:date>
    </item>
  </channel>
</rss>

