<?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 Failed to add S3 init script in job cluster in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/failed-to-add-s3-init-script-in-job-cluster/m-p/17740#M11703</link>
    <description>&lt;P&gt;I use below payload to submit my job that include am init script saved on S3. The instance profile and init script worked on interactive cluster. But when I move to job cluster the init script cannot be configure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;{
    "new_cluster": {
        "spark_version": "8.0.x-scala2.12",
        "spark_conf": {
             "spark.databricks.repl.allowedLanguages": "python,sql"
        },
        "aws_attributes": {
            "instance_profile_arn": "&amp;lt;my instance profile&amp;gt;"
        },
        "init_scripts": [
            {
                "s3": {
                    "destination": "s3://&amp;lt;my bucket&amp;gt;/init.sh"
                }
            }
        ],
        "instance_pool_id": "&amp;lt;pool id&amp;gt;",
        "autoscale": {
            "min_workers": 2,
            "max_workers": 6
        }
    },
    "notebook_task": {
        "notebook_path": "&amp;lt;my notebook&amp;gt;"
    }
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jul 2021 17:00:54 GMT</pubDate>
    <dc:creator>User16752239289</dc:creator>
    <dc:date>2021-07-13T17:00:54Z</dc:date>
    <item>
      <title>Failed to add S3 init script in job cluster</title>
      <link>https://community.databricks.com/t5/data-engineering/failed-to-add-s3-init-script-in-job-cluster/m-p/17740#M11703</link>
      <description>&lt;P&gt;I use below payload to submit my job that include am init script saved on S3. The instance profile and init script worked on interactive cluster. But when I move to job cluster the init script cannot be configure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;{
    "new_cluster": {
        "spark_version": "8.0.x-scala2.12",
        "spark_conf": {
             "spark.databricks.repl.allowedLanguages": "python,sql"
        },
        "aws_attributes": {
            "instance_profile_arn": "&amp;lt;my instance profile&amp;gt;"
        },
        "init_scripts": [
            {
                "s3": {
                    "destination": "s3://&amp;lt;my bucket&amp;gt;/init.sh"
                }
            }
        ],
        "instance_pool_id": "&amp;lt;pool id&amp;gt;",
        "autoscale": {
            "min_workers": 2,
            "max_workers": 6
        }
    },
    "notebook_task": {
        "notebook_path": "&amp;lt;my notebook&amp;gt;"
    }
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 17:00:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/failed-to-add-s3-init-script-in-job-cluster/m-p/17740#M11703</guid>
      <dc:creator>User16752239289</dc:creator>
      <dc:date>2021-07-13T17:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to add S3 init script in job cluster</title>
      <link>https://community.databricks.com/t5/data-engineering/failed-to-add-s3-init-script-in-job-cluster/m-p/17741#M11704</link>
      <description>&lt;P&gt;It is due to the region is missing. For init script saved in S3, the region field is required.  The init script section should be like below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;"init_scripts": [
            {
                "s3": {
                    "destination": "s3://&amp;lt;my bucket&amp;gt;/init.sh",
                    "region": ""
                }
            }
        ]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Note that the regions value can be empty " " or the specific region you want to configure. &lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 18:50:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/failed-to-add-s3-init-script-in-job-cluster/m-p/17741#M11704</guid>
      <dc:creator>User16752239289</dc:creator>
      <dc:date>2021-07-13T18:50:42Z</dc:date>
    </item>
  </channel>
</rss>

