<?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: How to resolve this error &amp;quot;Error: cannot create global init script: default auth: cannot configure default credentials&amp;quot; in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/how-to-resolve-this-error-quot-error-cannot-create-global-init/m-p/6908#M328</link>
    <description>&lt;P&gt;Some follow up context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I installed the Databricks CLI and set the target Azure Databricks host and PAT on a whim , and then re-ran the terraform and it looks like the cluster is being provisioned ... but ultimately fails due to the init script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: cannot create cluster: 0328-212215-kql46zgp is not able to transition from TERMINATED to RUNNING: An admin configured global init script failed. instance_id: 8ba71c27fbe54f3aa60799595954c3ce, databricks_error_message: Global init script mdp_init_script failed: Script exit status is non-zero, Termination info: code: GLOBAL_INIT_SCRIPT_FAILURE, type: CLIENT_ERROR, parameters: map[databricks_error_message:Global init script mdp_init_script failed: Script exit status is non-zero instance_id:8ba71c27fbe54f3aa60799595954c3ce]. Please see &lt;A href="https://docs.databricks.com/dev-tools/api/latest/clusters.html#clusterclusterstate" target="test_blank"&gt;https://docs.databricks.com/dev-tools/api/latest/clusters.html#clusterclusterstate&lt;/A&gt; for more details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would not expect the CLI as a requirement and a manual step to set the host and PAT, because I already do that in the Terraform code. Is this expected nature? If not, then how do I resolve the credential issue?&lt;/P&gt;</description>
    <pubDate>Tue, 28 Mar 2023 20:48:48 GMT</pubDate>
    <dc:creator>apatel</dc:creator>
    <dc:date>2023-03-28T20:48:48Z</dc:date>
    <item>
      <title>How to resolve this error "Error: cannot create global init script: default auth: cannot configure default credentials"</title>
      <link>https://community.databricks.com/t5/machine-learning/how-to-resolve-this-error-quot-error-cannot-create-global-init/m-p/6907#M327</link>
      <description>&lt;P&gt;I'm trying to set the global init script via my Terraform deployment. I did a thorough google search and can't seem to find guidance here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a very generic call to set these scripts in my TF Deployment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;terraform {&lt;/P&gt;&lt;P&gt;  required_providers {&lt;/P&gt;&lt;P&gt;    databricks = {&lt;/P&gt;&lt;P&gt;      source = "databricks/databricks"&lt;/P&gt;&lt;P&gt;    }&lt;/P&gt;&lt;P&gt;  }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;provider "databricks" {&lt;/P&gt;&lt;P&gt;  profile = var.databricks_profile&lt;/P&gt;&lt;P&gt;  alias   = "databricks_provider"&lt;/P&gt;&lt;P&gt;  host    = var.databricks_workspace_url&lt;/P&gt;&lt;P&gt;  token   = var.databricks_workspace_token&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resource "databricks_global_init_script" "init_script" {&lt;/P&gt;&lt;P&gt;  source  = "${path.module}/databricks_init_scripts.sh"&lt;/P&gt;&lt;P&gt;  name    = "mdp_init_script"&lt;/P&gt;&lt;P&gt;  enabled = true&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bash script file databricks_global_init_script.sh is basically empty. I put "apt-get update". I don't believe the script is even being called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The DB Workspace has a personal access token setup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Full error message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;│ Error: cannot create global init script: default auth: cannot configure default credentials&lt;/P&gt;&lt;P&gt;│&amp;nbsp;&lt;/P&gt;&lt;P&gt;│&amp;nbsp;&amp;nbsp;with module.databricks_cluster_setup.databricks_global_init_script.init_script,&lt;/P&gt;&lt;P&gt;│&amp;nbsp;&amp;nbsp;on ../modules/core-databricks/main.tf line 41, in resource "databricks_global_init_script" "init_script":&lt;/P&gt;&lt;P&gt;│&amp;nbsp;&amp;nbsp;41: resource "databricks_global_init_script" "init_script" {&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 18:30:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/how-to-resolve-this-error-quot-error-cannot-create-global-init/m-p/6907#M327</guid>
      <dc:creator>apatel</dc:creator>
      <dc:date>2023-03-28T18:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve this error "Error: cannot create global init script: default auth: cannot configure default credentials"</title>
      <link>https://community.databricks.com/t5/machine-learning/how-to-resolve-this-error-quot-error-cannot-create-global-init/m-p/6908#M328</link>
      <description>&lt;P&gt;Some follow up context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I installed the Databricks CLI and set the target Azure Databricks host and PAT on a whim , and then re-ran the terraform and it looks like the cluster is being provisioned ... but ultimately fails due to the init script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: cannot create cluster: 0328-212215-kql46zgp is not able to transition from TERMINATED to RUNNING: An admin configured global init script failed. instance_id: 8ba71c27fbe54f3aa60799595954c3ce, databricks_error_message: Global init script mdp_init_script failed: Script exit status is non-zero, Termination info: code: GLOBAL_INIT_SCRIPT_FAILURE, type: CLIENT_ERROR, parameters: map[databricks_error_message:Global init script mdp_init_script failed: Script exit status is non-zero instance_id:8ba71c27fbe54f3aa60799595954c3ce]. Please see &lt;A href="https://docs.databricks.com/dev-tools/api/latest/clusters.html#clusterclusterstate" target="test_blank"&gt;https://docs.databricks.com/dev-tools/api/latest/clusters.html#clusterclusterstate&lt;/A&gt; for more details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would not expect the CLI as a requirement and a manual step to set the host and PAT, because I already do that in the Terraform code. Is this expected nature? If not, then how do I resolve the credential issue?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 20:48:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/how-to-resolve-this-error-quot-error-cannot-create-global-init/m-p/6908#M328</guid>
      <dc:creator>apatel</dc:creator>
      <dc:date>2023-03-28T20:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve this error "Error: cannot create global init script: default auth: cannot configure default credentials"</title>
      <link>https://community.databricks.com/t5/machine-learning/how-to-resolve-this-error-quot-error-cannot-create-global-init/m-p/6909#M329</link>
      <description>&lt;P&gt;Ok in case this helps anyone else, I've managed to resolve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I confirmed in this documentation the databricks CLI is required locally, wherever this is being executed.  &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/terraform/cluster-notebook-job" target="test_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/dev-tools/terraform/cluster-notebook-job&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I managed to debug the init_script issues by viewing the output of the script from the DBFS.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/dev-tools/cli/dbfs-cli.html#" target="test_blank"&gt;https://docs.databricks.com/dev-tools/cli/dbfs-cli.html#&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This way I can get to the STDOUT.  One thing to keep in mind is to use commands in the script that are headless in nature - for example if doing apt-get do a apt-get -y instead to auto approve the action&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to anyone who maybe spent time reading / investigating this with me!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 01:05:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/how-to-resolve-this-error-quot-error-cannot-create-global-init/m-p/6909#M329</guid>
      <dc:creator>apatel</dc:creator>
      <dc:date>2023-03-29T01:05:22Z</dc:date>
    </item>
  </channel>
</rss>

