<?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 Unity Catalog + Streaming error: method public X is not whitelisted on class DataStreamReader in Data Governance</title>
    <link>https://community.databricks.com/t5/data-governance/unity-catalog-streaming-error-method-public-x-is-not-whitelisted/m-p/32051#M921</link>
    <description>&lt;P&gt;I want to import data using the autoloader from a S3 bucket into a table which is managed inside a Unity Catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now, I run the code on an interactive cluster inside a notebook. In the future the code should run in a job cluster. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error I get is the following:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;py4j.security.Py4JSecurityException: Method public org.apache.spark.sql.streaming.DataStreamReader org.apache.spark.sql.streaming.DataStreamReader.format(java.lang.String) is not whitelisted on class class org.apache.spark.sql.streaming.DataStreamReader&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What have I tried so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enabling credential passthrough on the cluster:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot 2022-09-09 at 6.15.00 PM"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1522iB323D6FDEE93DF0B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2022-09-09 at 6.15.00 PM" alt="Screenshot 2022-09-09 at 6.15.00 PM" /&gt;&lt;/span&gt;=&amp;gt; Doesn't work since Unity Catalog can't be used with this option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried setup an external location as described here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/data-governance/unity-catalog/manage-external-locations-and-credentials.html#create-external-location&amp;amp;language-Python" target="test_blank"&gt;https://docs.databricks.com/data-governance/unity-catalog/manage-external-locations-and-credentials.html#create-external-location&amp;amp;language-Python&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On top, I have found this article but the solution is not actionable for me:&lt;/P&gt;&lt;P&gt;&lt;A href="https://kb.databricks.com/en_US/streaming/readstream-is-not-whitelisted" target="test_blank"&gt;https://kb.databricks.com/en_US/streaming/readstream-is-not-whitelisted&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help?&lt;/P&gt;</description>
    <pubDate>Sat, 10 Sep 2022 01:16:41 GMT</pubDate>
    <dc:creator>data_boy_2022</dc:creator>
    <dc:date>2022-09-10T01:16:41Z</dc:date>
    <item>
      <title>Unity Catalog + Streaming error: method public X is not whitelisted on class DataStreamReader</title>
      <link>https://community.databricks.com/t5/data-governance/unity-catalog-streaming-error-method-public-x-is-not-whitelisted/m-p/32051#M921</link>
      <description>&lt;P&gt;I want to import data using the autoloader from a S3 bucket into a table which is managed inside a Unity Catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now, I run the code on an interactive cluster inside a notebook. In the future the code should run in a job cluster. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error I get is the following:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;py4j.security.Py4JSecurityException: Method public org.apache.spark.sql.streaming.DataStreamReader org.apache.spark.sql.streaming.DataStreamReader.format(java.lang.String) is not whitelisted on class class org.apache.spark.sql.streaming.DataStreamReader&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What have I tried so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enabling credential passthrough on the cluster:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot 2022-09-09 at 6.15.00 PM"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1522iB323D6FDEE93DF0B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2022-09-09 at 6.15.00 PM" alt="Screenshot 2022-09-09 at 6.15.00 PM" /&gt;&lt;/span&gt;=&amp;gt; Doesn't work since Unity Catalog can't be used with this option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried setup an external location as described here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/data-governance/unity-catalog/manage-external-locations-and-credentials.html#create-external-location&amp;amp;language-Python" target="test_blank"&gt;https://docs.databricks.com/data-governance/unity-catalog/manage-external-locations-and-credentials.html#create-external-location&amp;amp;language-Python&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On top, I have found this article but the solution is not actionable for me:&lt;/P&gt;&lt;P&gt;&lt;A href="https://kb.databricks.com/en_US/streaming/readstream-is-not-whitelisted" target="test_blank"&gt;https://kb.databricks.com/en_US/streaming/readstream-is-not-whitelisted&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Sep 2022 01:16:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/unity-catalog-streaming-error-method-public-x-is-not-whitelisted/m-p/32051#M921</guid>
      <dc:creator>data_boy_2022</dc:creator>
      <dc:date>2022-09-10T01:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Unity Catalog + Streaming error: method public X is not whitelisted on class DataStreamReader</title>
      <link>https://community.databricks.com/t5/data-governance/unity-catalog-streaming-error-method-public-x-is-not-whitelisted/m-p/32052#M922</link>
      <description>&lt;P&gt;Hi! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Databricks recently released the documentation on using Unity Catalog with Structured Streaming: &lt;A href="https://docs.databricks.com/structured-streaming/unity-catalog.html?_ga=2.161852859.642409458.1663602919-1162808093.1632265375" alt="https://docs.databricks.com/structured-streaming/unity-catalog.html?_ga=2.161852859.642409458.1663602919-1162808093.1632265375" target="_blank"&gt;https://docs.databricks.com/structured-streaming/unity-catalog.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Per document requirement, for both interactive notebooks and scheduled jobs, you must use single user clusters for Structured Streaming on Unity Catalog. Python and Scala are supported. Could you verify if the cluster access model is &lt;A href="https://docs.databricks.com/data-governance/unity-catalog/compute.html#what-is-cluster-access-mode" alt="https://docs.databricks.com/data-governance/unity-catalog/compute.html#what-is-cluster-access-mode" target="_blank"&gt;single user&lt;/A&gt;? &lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 19:56:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/unity-catalog-streaming-error-method-public-x-is-not-whitelisted/m-p/32052#M922</guid>
      <dc:creator>Tian</dc:creator>
      <dc:date>2022-09-19T19:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unity Catalog + Streaming error: method public X is not whitelisted on class DataStreamReader</title>
      <link>https://community.databricks.com/t5/data-governance/unity-catalog-streaming-error-method-public-x-is-not-whitelisted/m-p/32053#M923</link>
      <description>&lt;P&gt;Works with single user mode. Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 06:10:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/unity-catalog-streaming-error-method-public-x-is-not-whitelisted/m-p/32053#M923</guid>
      <dc:creator>data_boy_2022</dc:creator>
      <dc:date>2022-09-20T06:10:49Z</dc:date>
    </item>
  </channel>
</rss>

