<?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: Constructor public org.apache.spark.SparkConf(boolean) is not whitelisted. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/constructor-public-org-apache-spark-sparkconf-boolean-is-not/m-p/3964#M831</link>
    <description>&lt;P&gt;@Jose Gonzalez​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes! That was the case and we fixed it by using it on the standard cluster so it's working now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but thanks anyway!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;out of curiosity why it doesn't work on high-concurrency clusters?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Milind&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jun 2023 15:37:51 GMT</pubDate>
    <dc:creator>Mikki007</dc:creator>
    <dc:date>2023-06-22T15:37:51Z</dc:date>
    <item>
      <title>Constructor public org.apache.spark.SparkConf(boolean) is not whitelisted.</title>
      <link>https://community.databricks.com/t5/data-engineering/constructor-public-org-apache-spark-sparkconf-boolean-is-not/m-p/3962#M829</link>
      <description>&lt;P&gt;My code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from great_expectations.datasource import SparkDFDatasource&lt;/P&gt;&lt;P&gt;from pyspark.sql import SparkSession&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;session_name = 'mk_spark_session'&lt;/P&gt;&lt;P&gt;spark = SparkSession.builder.appName(session_name).getOrCreate()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;datasource = SparkDFDatasource(spark)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;query = "SELECT * FROM test_large_table limit 10"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;df = spark.sql(query)&lt;/P&gt;&lt;P&gt;print(df)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am running above code in Azure Databricks.&lt;/P&gt;&lt;P&gt;spark version is 3.4.0&lt;/P&gt;&lt;P&gt;pyspark is 3.4.0&lt;/P&gt;&lt;P&gt;py4j is 0.10.9.7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I am getting below error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;py4j.security.Py4JSecurityException: Constructor public org.apache.spark.SparkConf(boolean) is not whitelisted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Py4JError: An error occurred while calling None.org.apache.spark.SparkConf. Trace:&lt;/P&gt;&lt;P&gt;py4j.security.Py4JSecurityException: Constructor public org.apache.spark.SparkConf(boolean) is not whitelisted.&lt;/P&gt;&lt;P&gt;	at py4j.security.WhitelistingPy4JSecurityManager.checkConstructor(WhitelistingPy4JSecurityManager.java:451)&lt;/P&gt;&lt;P&gt;	at py4j.Gateway.invoke(Gateway.java:256)&lt;/P&gt;&lt;P&gt;	at py4j.commands.ConstructorCommand.invokeConstructor(ConstructorCommand.java:80)&lt;/P&gt;&lt;P&gt;	at py4j.commands.ConstructorCommand.execute(ConstructorCommand.java:69)&lt;/P&gt;&lt;P&gt;	at py4j.ClientServerConnection.waitForCommands(ClientServerConnection.java:195)&lt;/P&gt;&lt;P&gt;	at py4j.ClientServerConnection.run(ClientServerConnection.java:115)&lt;/P&gt;&lt;P&gt;	at java.lang.Thread.run(Thread.java:750)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 11:41:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/constructor-public-org-apache-spark-sparkconf-boolean-is-not/m-p/3962#M829</guid>
      <dc:creator>Mikki007</dc:creator>
      <dc:date>2023-05-26T11:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Constructor public org.apache.spark.SparkConf(boolean) is not whitelisted.</title>
      <link>https://community.databricks.com/t5/data-engineering/constructor-public-org-apache-spark-sparkconf-boolean-is-not/m-p/3963#M830</link>
      <description>&lt;P&gt;Are you using a high concurrency cluster? if you do, please try to run this code on standard cluster&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 21:04:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/constructor-public-org-apache-spark-sparkconf-boolean-is-not/m-p/3963#M830</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2023-06-14T21:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Constructor public org.apache.spark.SparkConf(boolean) is not whitelisted.</title>
      <link>https://community.databricks.com/t5/data-engineering/constructor-public-org-apache-spark-sparkconf-boolean-is-not/m-p/3964#M831</link>
      <description>&lt;P&gt;@Jose Gonzalez​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes! That was the case and we fixed it by using it on the standard cluster so it's working now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but thanks anyway!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;out of curiosity why it doesn't work on high-concurrency clusters?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Milind&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 15:37:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/constructor-public-org-apache-spark-sparkconf-boolean-is-not/m-p/3964#M831</guid>
      <dc:creator>Mikki007</dc:creator>
      <dc:date>2023-06-22T15:37:51Z</dc:date>
    </item>
  </channel>
</rss>

