<?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: Is it possible to pass configuration to a  job on high concurrency cluster? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/is-it-possible-to-pass-configuration-to-a-job-on-high/m-p/15000#M9400</link>
    <description>&lt;P&gt;I guess it's just not supported; I wanted per-user hadoop configuration.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Sep 2021 03:00:24 GMT</pubDate>
    <dc:creator>DouglasLinder</dc:creator>
    <dc:date>2021-09-28T03:00:24Z</dc:date>
    <item>
      <title>Is it possible to pass configuration to a  job on high concurrency cluster?</title>
      <link>https://community.databricks.com/t5/data-engineering/is-it-possible-to-pass-configuration-to-a-job-on-high/m-p/14995#M9395</link>
      <description>&lt;P&gt;On a regular cluster, you can use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;spark.sparkContext._jsc.hadoopConfiguration().set(key, value)&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These values are then available on the executors using the hadoop configuration. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, on a high concurrency cluster, attempting to do so results in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; py4j.security.Py4JSecurityException: Method public org.apache.hadoop.conf.Configuration org.apache.spark.api.java.JavaSparkContext.hadoopConfiguration() is not whitelisted on class class org.apache.spark.api.java.JavaSparkContext&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way around this? Or is a limitation of the high concurrency cluster type?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The goal here is to pass tokens that are generate at runtime to the executor, which means that setting the details in the cluster settings (ie. cluster &amp;gt; advanced &amp;gt; spark &amp;gt; spark config) is not suitable.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 05:32:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-it-possible-to-pass-configuration-to-a-job-on-high/m-p/14995#M9395</guid>
      <dc:creator>DouglasLinder</dc:creator>
      <dc:date>2021-09-22T05:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to pass configuration to a  job on high concurrency cluster?</title>
      <link>https://community.databricks.com/t5/data-engineering/is-it-possible-to-pass-configuration-to-a-job-on-high/m-p/14997#M9397</link>
      <description>&lt;P&gt;I am not sure why you are getting that error on a high concurrency cluster. As I am able to set the configuration as you show above. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try the following code instead? &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sc._jsc.hadoopConfiguration().set(key, value)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 20:21:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-it-possible-to-pass-configuration-to-a-job-on-high/m-p/14997#M9397</guid>
      <dc:creator>Ryan_Chynoweth</dc:creator>
      <dc:date>2021-09-22T20:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to pass configuration to a  job on high concurrency cluster?</title>
      <link>https://community.databricks.com/t5/data-engineering/is-it-possible-to-pass-configuration-to-a-job-on-high/m-p/14998#M9398</link>
      <description>&lt;P&gt;Sorry, I failed to mention that I had selected 'credential passthrough' for my cluster, which adds the these features to the cluster configuration:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;spark.databricks.passthrough.enabled true&lt;/P&gt;&lt;P&gt;spark.databricks.pyspark.enableProcessIsolation true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you remove this then it works as normal.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 00:36:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-it-possible-to-pass-configuration-to-a-job-on-high/m-p/14998#M9398</guid>
      <dc:creator>DouglasLinder</dc:creator>
      <dc:date>2021-09-23T00:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to pass configuration to a  job on high concurrency cluster?</title>
      <link>https://community.databricks.com/t5/data-engineering/is-it-possible-to-pass-configuration-to-a-job-on-high/m-p/14999#M9399</link>
      <description>&lt;P&gt;Got it. I am fairly certain that is related to the &lt;A href="https://docs.microsoft.com/en-us/azure/databricks/security/credential-passthrough/adls-passthrough#--limitations" alt="https://docs.microsoft.com/en-us/azure/databricks/security/credential-passthrough/adls-passthrough#--limitations" target="_blank"&gt;passthrough limitations&lt;/A&gt; as you probably assumed. In the link it says there are limitations around SparkContext methods and SparkSession objects. It does not explicitly list your issue but I assume it is similar enough to apply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does removing those configs work for your environment? Do you require passthrough?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 15:38:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-it-possible-to-pass-configuration-to-a-job-on-high/m-p/14999#M9399</guid>
      <dc:creator>Ryan_Chynoweth</dc:creator>
      <dc:date>2021-09-23T15:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to pass configuration to a  job on high concurrency cluster?</title>
      <link>https://community.databricks.com/t5/data-engineering/is-it-possible-to-pass-configuration-to-a-job-on-high/m-p/15000#M9400</link>
      <description>&lt;P&gt;I guess it's just not supported; I wanted per-user hadoop configuration.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 03:00:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-it-possible-to-pass-configuration-to-a-job-on-high/m-p/15000#M9400</guid>
      <dc:creator>DouglasLinder</dc:creator>
      <dc:date>2021-09-28T03:00:24Z</dc:date>
    </item>
  </channel>
</rss>

