A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.databricks.com/aws/en/init-scripts/global below:

Global init scripts | Databricks Documentation

Global init scripts

important

Databricks recommends configuring all init scripts as cluster-scoped init scripts and managing them across your workspace using cluster policies. See Cluster-scoped init scripts.

A global init script runs on all clusters in your workspace configured with dedicated (formerly single user) or legacy no-isolation shared access mode. Only workpace admins can create global init scripts. You can create them using either the UI or REST API.

important

Before using global init scripts, consider the following:

You can troubleshoot global init scripts by configuring cluster log delivery and examining the init script log. See Init script logging.

Add a global init script using the UI​

To configure global init scripts using the admin settings:

  1. Go to the admin settings and click the Compute tab.

  2. Click Manage next to Global init scripts.

  3. Click + Add.

  4. Name the script and enter it by typing, pasting, or dragging a text file into the Script field.

    note

    The init script cannot be larger than 64KB. If a script exceeds that size, an error message appears when you try to save.

  5. If you have more than one global init script configured for your workspace, set the order in which the new script will run.

  6. If you want the script to be enabled for all new and restarted clusters after you save, toggle Enabled.

    important

    When you add a global init script or make changes to the name, run order, or enablement of init scripts, those changes do not take effect until you restart the cluster.

  7. Click Add.

Add a global init script using Terraform​

You can add a global init script by using the Databricks Terraform provider and databricks_global_init_script.

Edit a global init script using the UI​
  1. Go to the admin settings and click the Compute tab.
  2. Click Manage next to Global init scripts.
  3. Click a script.
  4. Edit the script.
  5. Click Confirm.
Configure a global init script using the API​

Workspace admins can add, delete, re-order, and get information about the global init scripts in your workspace using the Global Init Scripts API.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4