<?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: Shared access mode and py4j.security.Py4JSecurityException in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/shared-access-mode-and-py4j-security-py4jsecurityexception/m-p/92624#M38481</link>
    <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/8379"&gt;@gchandra&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;I'm aware that I can use .&lt;SPAN&gt;&lt;SPAN class=""&gt;safeToJson() but did you see the code of&amp;nbsp;&amp;nbsp;py4j.security.WhitelistingPy4JSecurityManager ? How it works what can be&amp;nbsp;whitelist what can't be&amp;nbsp;whitelist ? I don't see&amp;nbsp;py4j.security.WhitelistingPy4JSecurityManager on official py4j github. Is this code is closed and owned by Databricks ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Oct 2024 06:52:34 GMT</pubDate>
    <dc:creator>cszczotka</dc:creator>
    <dc:date>2024-10-03T06:52:34Z</dc:date>
    <item>
      <title>Shared access mode and py4j.security.Py4JSecurityException</title>
      <link>https://community.databricks.com/t5/data-engineering/shared-access-mode-and-py4j-security-py4jsecurityexception/m-p/92578#M38468</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are getting below exception on shared access mode cluster.&lt;/P&gt;&lt;P&gt;&lt;EM&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;/EM&gt;&lt;/P&gt;&lt;P&gt;I'm trying to find some workaround for this issue&amp;nbsp; ( other that switch on single user access mode ) like &lt;SPAN&gt;whitelist&lt;/SPAN&gt;ing this method by setting spark config in my cluster:&lt;BR /&gt;&lt;EM&gt;spark.driver.extraJavaOption -Dpy4j.security.allowed.methods=com.databricks.backend.common.rpc.CommandContext.toJson spark.executor.extraJavaOptions -Dpy4j.security.allowed.methods=com.databricks.backend.common.rpc.CommandContext.toJson&amp;nbsp;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Unfortunately it doesn't work. Do you know if syntax is correct or maybe exist other way how to&amp;nbsp;&lt;SPAN&gt;whitelist method for py4j.security.&lt;SPAN class=""&gt;WhitelistingPy4JSecurityManager ? I see that some commercial product running on Databricks has such possibility&amp;nbsp;&lt;A href="https://privacera.com/docs/en/whitelist-py4j-security-manager-via-s3-or-dbfs.html" target="_blank" rel="noopener"&gt;https://privacera.com/docs/en/whitelist-py4j-security-manager-via-s3-or-dbfs.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Maybe you know also where can I find code for&amp;nbsp;py4j.security.WhitelistingPy4JSecurityManager ( I don't see anything related with security on&amp;nbsp;&lt;A href="https://github.com/py4j/py4j/tree/master/py4j-java" target="_blank" rel="noopener"&gt;https://github.com/py4j/py4j/tree/master/py4j-java&lt;/A&gt;&amp;nbsp;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 13:41:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/shared-access-mode-and-py4j-security-py4jsecurityexception/m-p/92578#M38468</guid>
      <dc:creator>cszczotka</dc:creator>
      <dc:date>2024-10-02T13:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Shared access mode and py4j.security.Py4JSecurityException</title>
      <link>https://community.databricks.com/t5/data-engineering/shared-access-mode-and-py4j-security-py4jsecurityexception/m-p/92579#M38469</link>
      <description>&lt;P&gt;Low-level APIs and RDDs won't work on UC Shared Compute clusters (as Governance cannot be enforced on those APIs).&lt;/P&gt;
&lt;P&gt;&lt;A href="https://medium.com/@gchandra/list/py4jsecurityexception-7e720f2743bc" target="_blank"&gt;https://medium.com/@gchandra/list/py4jsecurityexception-7e720f2743bc&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 13:48:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/shared-access-mode-and-py4j-security-py4jsecurityexception/m-p/92579#M38469</guid>
      <dc:creator>gchandra</dc:creator>
      <dc:date>2024-10-02T13:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Shared access mode and py4j.security.Py4JSecurityException</title>
      <link>https://community.databricks.com/t5/data-engineering/shared-access-mode-and-py4j-security-py4jsecurityexception/m-p/92582#M38470</link>
      <description>&lt;P&gt;If you are looking for any specific property using .toJSON() please do share.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 13:50:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/shared-access-mode-and-py4j-security-py4jsecurityexception/m-p/92582#M38470</guid>
      <dc:creator>gchandra</dc:creator>
      <dc:date>2024-10-02T13:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Shared access mode and py4j.security.Py4JSecurityException</title>
      <link>https://community.databricks.com/t5/data-engineering/shared-access-mode-and-py4j-security-py4jsecurityexception/m-p/92624#M38481</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/8379"&gt;@gchandra&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;I'm aware that I can use .&lt;SPAN&gt;&lt;SPAN class=""&gt;safeToJson() but did you see the code of&amp;nbsp;&amp;nbsp;py4j.security.WhitelistingPy4JSecurityManager ? How it works what can be&amp;nbsp;whitelist what can't be&amp;nbsp;whitelist ? I don't see&amp;nbsp;py4j.security.WhitelistingPy4JSecurityManager on official py4j github. Is this code is closed and owned by Databricks ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 06:52:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/shared-access-mode-and-py4j-security-py4jsecurityexception/m-p/92624#M38481</guid>
      <dc:creator>cszczotka</dc:creator>
      <dc:date>2024-10-03T06:52:34Z</dc:date>
    </item>
  </channel>
</rss>

