<?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 Azure Shared Clusters - P4J Security Exception on non-whitelisted classes in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/azure-shared-clusters-p4j-security-exception-on-non-whitelisted/m-p/50817#M28903</link>
    <description>&lt;P&gt;Hi all&lt;BR /&gt;&lt;BR /&gt;Having some fun trying to run a notebook on a shared UC-aware, shared cluster - I keep on running into this error:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;py4j.security.Py4JSecurityException: Method public static org.apache.spark.sql.SparkSession org.apache.sedona.spark.SedonaContext.create(org.apache.spark.sql.SparkSession) is not whitelisted on class class org.apache.sedona.spark.SedonaContext&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now - the notebook that is having the problem runs perfectly on a non-shared cluster - but I need to have it running on the shared cluster&lt;BR /&gt;&lt;BR /&gt;I can't ANY information on how to get this public static method whitelisted on the class so it can run w/o error on the shared cluster&lt;BR /&gt;&lt;BR /&gt;So...&amp;nbsp; &amp;nbsp;My question is - "how do I whitelist&amp;nbsp;this public static method so that my cluster doesn't&amp;nbsp;barf when it try's&amp;nbsp;to run the "&lt;/SPAN&gt;&lt;SPAN&gt;SedonaContext.create(spark)"&amp;nbsp; command that is generating the error?&lt;BR /&gt;&lt;BR /&gt;...and before you suggest it - "Table Access Control" is NOT enabled - so it's not that&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-=A=-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Nov 2023 14:09:34 GMT</pubDate>
    <dc:creator>abhaigh</dc:creator>
    <dc:date>2023-11-10T14:09:34Z</dc:date>
    <item>
      <title>Azure Shared Clusters - P4J Security Exception on non-whitelisted classes</title>
      <link>https://community.databricks.com/t5/data-engineering/azure-shared-clusters-p4j-security-exception-on-non-whitelisted/m-p/50817#M28903</link>
      <description>&lt;P&gt;Hi all&lt;BR /&gt;&lt;BR /&gt;Having some fun trying to run a notebook on a shared UC-aware, shared cluster - I keep on running into this error:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;py4j.security.Py4JSecurityException: Method public static org.apache.spark.sql.SparkSession org.apache.sedona.spark.SedonaContext.create(org.apache.spark.sql.SparkSession) is not whitelisted on class class org.apache.sedona.spark.SedonaContext&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now - the notebook that is having the problem runs perfectly on a non-shared cluster - but I need to have it running on the shared cluster&lt;BR /&gt;&lt;BR /&gt;I can't ANY information on how to get this public static method whitelisted on the class so it can run w/o error on the shared cluster&lt;BR /&gt;&lt;BR /&gt;So...&amp;nbsp; &amp;nbsp;My question is - "how do I whitelist&amp;nbsp;this public static method so that my cluster doesn't&amp;nbsp;barf when it try's&amp;nbsp;to run the "&lt;/SPAN&gt;&lt;SPAN&gt;SedonaContext.create(spark)"&amp;nbsp; command that is generating the error?&lt;BR /&gt;&lt;BR /&gt;...and before you suggest it - "Table Access Control" is NOT enabled - so it's not that&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-=A=-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 14:09:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/azure-shared-clusters-p4j-security-exception-on-non-whitelisted/m-p/50817#M28903</guid>
      <dc:creator>abhaigh</dc:creator>
      <dc:date>2023-11-10T14:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Azure Shared Clusters - P4J Security Exception on non-whitelisted classes</title>
      <link>https://community.databricks.com/t5/data-engineering/azure-shared-clusters-p4j-security-exception-on-non-whitelisted/m-p/53463#M29803</link>
      <description>&lt;P&gt;Thanks for the reply Kaniz - Not that any of your possible solutions work, but thanks anyway&lt;BR /&gt;&lt;BR /&gt;I don't have the option to set "Notebook Settings" in my databricks notebook in Azure&lt;BR /&gt;&lt;BR /&gt;The system refuses to permit me to set "spark.databricks.pyspark.enablePy4JSecurity false" on the SHARED cluster because of the security risks&lt;BR /&gt;&lt;BR /&gt;You would have been better to have done the same research I did and refer me to THIS page&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"spark.databricks.pyspark.enablePy4JSecurity is not allowed when choosing an access mode"&amp;nbsp;&lt;/SPAN&gt;[&lt;A href="https://community.databricks.com/t5/data-governance/quot-spark-databricks-pyspark-enablepy4jsecurity-is-not-allowed/td-p/8236" target="_blank"&gt;https://community.databricks.com/t5/data-governance/quot-spark-databricks-pyspark-enablepy4jsecurity-is-not-allowed/td-p/8236&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;And this comment on it&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/39824"&gt;@Christine&lt;/a&gt; Pedersen​&amp;nbsp;, It is not possible to use it in a shared cluster as of now. Thank you!"&lt;/SPAN&gt;&lt;A href="https://community.databricks.com/t5/data-governance/quot-spark-databricks-pyspark-enablepy4jsecurity-is-not-allowed/m-p/8239/highlight/true#M247" target="_blank"&gt;[https://community.databricks.com/t5/data-governance/quot-spark-databricks-pyspark-enablepy4jsecurity-is-not-allowed/m-p/8239/highlight/true#M247&lt;/A&gt;]&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;And no - I'm not opening up a support call with Databricks, not when I know what they will tell me&lt;BR /&gt;&lt;BR /&gt;Again, thanks anyway - but what I wanted to do is currently impossible&lt;/P&gt;&lt;P&gt;-=A=-&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 10:52:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/azure-shared-clusters-p4j-security-exception-on-non-whitelisted/m-p/53463#M29803</guid>
      <dc:creator>abhaigh</dc:creator>
      <dc:date>2023-11-22T10:52:15Z</dc:date>
    </item>
  </channel>
</rss>

