<?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 Re: Databricks Unity Catalog Shared Mode Cluster Py4J Security Issue in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-unity-catalog-shared-mode-cluster-py4j-security-issue/m-p/59881#M31517</link>
    <description>&lt;P&gt;Hi, I am bumping this post since I am also encountering the same issue with shared cluster with apache sedona class when try to register and getting the following&amp;nbsp;&lt;SPAN&gt;Py4JSecurityException error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;py4j.security.Py4JSecurityException: Method public static void org.apache.sedona.sql.utils.SedonaSQLRegistrator.registerAll(org.apache.spark.sql.SparkSession) is not whitelisted on class class org.apache.sedona.sql.utils.SedonaSQLRegistrator&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;While we can use the personal compute/single user, but the team still prefer the shared cluster when we are working on the unity catalog. Is there any recommendation on how to add the class to whitelist, or any other aproach?&lt;/P&gt;</description>
    <pubDate>Mon, 12 Feb 2024 01:22:48 GMT</pubDate>
    <dc:creator>Yulei</dc:creator>
    <dc:date>2024-02-12T01:22:48Z</dc:date>
    <item>
      <title>Databricks Unity Catalog Shared Mode Cluster Py4J Security Issue</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-unity-catalog-shared-mode-cluster-py4j-security-issue/m-p/38646#M26693</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;Hi there, I am getting this error when trying to use Databricks Runtime 13.1, Shared Mode (We need unity catalog), multimode cluster (this works in single user mode, but we need shared mode):&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ian_P_0-1690531566535.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/3010i2FB702A283BE453E/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Ian_P_0-1690531566535.png" alt="Ian_P_0-1690531566535.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT face="courier new,courier"&gt;py4j.security.Py4JSecurityException: Method public java.lang.String com.databricks.backend.common.rpc.CommandContext.toJson() is not whitelisted on class class com.databricks.backend.common.rpc.CommandContext&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;I've tried a ton of things online including adding to my spark configs:&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;spark.databricks.security.py4j.whitelist &lt;/SPAN&gt;&lt;SPAN&gt;com.databricks.backend.common.rpc.CommandContext&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;spark.driver.extraJavaOptions -Dpy4j.security.allowed.methods=com.databricks.backend.common.rpc.CommandContext&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;FONT face="inherit" color="#1b3139"&gt;but no luck. is there a way to whitelist this that &lt;/FONT&gt;&lt;FONT color="#1b3139"&gt;&lt;SPAN&gt;I'm&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="inherit" color="#1b3139"&gt;&amp;nbsp;missing? or another work around?&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 Jul 2023 09:32:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-unity-catalog-shared-mode-cluster-py4j-security-issue/m-p/38646#M26693</guid>
      <dc:creator>Ian_P</dc:creator>
      <dc:date>2023-07-28T09:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Unity Catalog Shared Mode Cluster Py4J Security Issue</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-unity-catalog-shared-mode-cluster-py4j-security-issue/m-p/38684#M26717</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/85497"&gt;@Ian_P&lt;/a&gt;&amp;nbsp;can you please add below in spark config settings, looks you missed &lt;STRONG&gt;false, &lt;/STRONG&gt;we are not seeing any clear article for reason&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://learn.microsoft.com/en-us/answers/questions/1284871/spark-catalog-whitelisted-for-shared-clusters-with" target="_blank"&gt;https://learn.microsoft.com/en-us/answers/questions/1284871/spark-catalog-whitelisted-for-shared-clusters-with&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;spark.databricks.pyspark.enablePy4JSecurity&amp;nbsp;false&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 16:07:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-unity-catalog-shared-mode-cluster-py4j-security-issue/m-p/38684#M26717</guid>
      <dc:creator>karthik_p</dc:creator>
      <dc:date>2023-07-28T16:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Unity Catalog Shared Mode Cluster Py4J Security Issue</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-unity-catalog-shared-mode-cluster-py4j-security-issue/m-p/38765#M26750</link>
      <description>&lt;P&gt;Hi Karthik databricks won't allow me to disable py4j security. when I add that config. it throws an error (saying that I'm not allowed to add that config) in databricks and won't allow me to confirm and restart the cluster&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 08:52:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-unity-catalog-shared-mode-cluster-py4j-security-issue/m-p/38765#M26750</guid>
      <dc:creator>Ian_P</dc:creator>
      <dc:date>2023-07-31T08:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Unity Catalog Shared Mode Cluster Py4J Security Issue</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-unity-catalog-shared-mode-cluster-py4j-security-issue/m-p/59881#M31517</link>
      <description>&lt;P&gt;Hi, I am bumping this post since I am also encountering the same issue with shared cluster with apache sedona class when try to register and getting the following&amp;nbsp;&lt;SPAN&gt;Py4JSecurityException error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;py4j.security.Py4JSecurityException: Method public static void org.apache.sedona.sql.utils.SedonaSQLRegistrator.registerAll(org.apache.spark.sql.SparkSession) is not whitelisted on class class org.apache.sedona.sql.utils.SedonaSQLRegistrator&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;While we can use the personal compute/single user, but the team still prefer the shared cluster when we are working on the unity catalog. Is there any recommendation on how to add the class to whitelist, or any other aproach?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 01:22:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-unity-catalog-shared-mode-cluster-py4j-security-issue/m-p/59881#M31517</guid>
      <dc:creator>Yulei</dc:creator>
      <dc:date>2024-02-12T01:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Unity Catalog Shared Mode Cluster Py4J Security Issue</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-unity-catalog-shared-mode-cluster-py4j-security-issue/m-p/59891#M31523</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/85497"&gt;@Ian_P&lt;/a&gt;&amp;nbsp;, Thanks for bringing up your concerns, always happy to help&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Are you getting the py4j.security exeception when trying to schedule a job on the shared cluster?&lt;/P&gt;
&lt;P&gt;If yes then could you please share the screenshot of the notebook code that you are scheduling as well? I would like to understand what the code in the Notebook is doing that is encountering the Py4JSecurity. Due to the Table access control and Py4j security, there are some limitations on Shared mode clusters like commands that access the SparkContext.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer the below doc for the more details about the limitations:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://docs.databricks.com/en/data-governance/unity-catalog/compute.html#shared-access-mode-limitations" target="_blank"&gt;https://docs.databricks.com/en/data-governance/unity-catalog/compute.html#shared-access-mode-limitations&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Looking forward to hearing from you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 06:48:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-unity-catalog-shared-mode-cluster-py4j-security-issue/m-p/59891#M31523</guid>
      <dc:creator>Ayushi_Suthar</dc:creator>
      <dc:date>2024-02-12T06:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Unity Catalog Shared Mode Cluster Py4J Security Issue</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-unity-catalog-shared-mode-cluster-py4j-security-issue/m-p/60304#M31629</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/76914"&gt;@Ayushi_Suthar&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/98929"&gt;@Yulei&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After chatting to databricks support, it seems this behaviour is very intentional and there is no work around since the security around Unity Catalog is strict and necessary. We are just using single user cluster.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 11:28:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-unity-catalog-shared-mode-cluster-py4j-security-issue/m-p/60304#M31629</guid>
      <dc:creator>Ian_P</dc:creator>
      <dc:date>2024-02-15T11:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Unity Catalog Shared Mode Cluster Py4J Security Issue</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-unity-catalog-shared-mode-cluster-py4j-security-issue/m-p/112255#M44149</link>
      <description>&lt;P&gt;Hi, i too am working to create a job cluster in databricks workflows which should be unity catalog enabled.But, it works only for single-user mode and not shared,while the team where i work needs it as shared one.I too got the same error like as shown below in highlighted section:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DB_Learner17_1-1741684687790.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/15335i841F3D1B2DAE99A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DB_Learner17_1-1741684687790.png" alt="DB_Learner17_1-1741684687790.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is any work around still not possible to overcome this?&lt;/P&gt;&lt;P&gt;Also, if its not possible , then i want to know whether it would in anyway affect the compute capacity of the cluster when i switch to single-user mode? i dont want to loose the compute capacity because of this change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 09:20:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-unity-catalog-shared-mode-cluster-py4j-security-issue/m-p/112255#M44149</guid>
      <dc:creator>DB_Learner17</dc:creator>
      <dc:date>2025-03-11T09:20:10Z</dc:date>
    </item>
  </channel>
</rss>

