A RetroSearch Logo

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

Search Query:

Showing content from https://docs.databricks.com/aws/en/compute/web-terminal below:

Run shell commands in Databricks web terminal

Run shell commands in Databricks web terminal

The Databricks web terminal provides a convenient and highly interactive way to run shell commands in a command-line interface (CLI), including Databricks CLI commands, to take actions on Databricks objects programmatically. It's especially useful for advanced use cases, such as batch operations on multiple files, which existing user interfaces (UIs) might not fully support.

Unlike using SSH, many users can use the web terminal on one compute and it does not require setting up keys.

You can use the web terminal to do the following:

Requirements​

warning

Databricks proxies the web terminal service from port 7681 on the compute's Spark driver. This web proxy is intended for use only with the web terminal. If the port is occupied when the compute starts or there is some sort of conflict, the web terminal might not work as expected. If other web services are launched on port 7681, compute users might be exposed to potential security exploits. Databricks is not responsible for any issues that result from the installation of unsupported software on a compute.

Launch the web terminal​

You can launch the web terminal from the compute details page or from a notebook.

From a notebook​

To launch the web terminal from a notebook:

  1. Connect the notebook to compute.
  2. At the bottom of the notebook's right sidebar, click the terminal icon to launch the web terminal.
  3. Alternatively, click the attached compute drop-down, hover over the attached compute, then click Web Terminal.

The web terminal opens in a panel at the bottom of the screen. The buttons at the upper-right of the panel allow you to:

From the compute details page​

To launch the web terminal from the compute details page:

  1. On the workspace's sidebar, click Compute.
  2. On the All-purpose compute tab, click the name of the compute.
  3. Click Start to start the compute.
  4. On the Apps tab, click Web Terminal.

A new tab opens with the web terminal UI and the Bash prompt.

Use web terminal​

In the web terminal, you can run commands from root inside the container of the compute driver node.

Each user can have up to 100 active web terminal sessions (tabs) open. Idle web terminal sessions may time out and the web terminal web application will reconnect, resulting in a new shell process. If you want to keep your Bash session, Databricks recommends using tmux.

Run Databricks CLI commands​

You can also use the web terminal to run Databricks CLI commands. The available CLI is always the latest version, and authentication is based on the current user.

note

Configuration profile commands are not supported when running CLI commands in the web terminal. This is because the web terminal uses environment variables to authenticate to the CLI, which precedes configuration profiles in the authentication order of evaluation.

The compute must meet the following requirements:

Launch the web terminal and run the following command to output information about the current user:

Bash

   databricks current-user me

Bundle commands are also available, which allows you to create and manage your Databricks Asset Bundles directly from the web terminal within the Databricks workspace. For example, to create, deploy, and run a simple bundle using the default template:

  1. From the web terminal root, navigate to your workspace home and run bundle init:

    Bash

    cd /Workspace/Users/someone@example.com
    databricks bundle init
  2. Accept the default template prompts, then change to the bundle directory and deploy it:

    Bash

    cd my_project
    databricks bundle deploy

    You can view the deployed my_project bundle in the Databricks workspace UI.

  3. Finally, run the default job in the bundle:

    Bash

    databricks bundle run my_project_job

    Navigate to Job Runs to see the running job.

Configure your web terminal​

You can set persistent configurations for your web terminal using .bashrc configuration files.

Databricks automatically sources files named .bashrc from your workspace file system's home folder. Settings from these files are automatically activated each time you start a new terminal session.

If you want to source any other files (such as .zshrc) for your web terminal experience, source them from your .bashrc file to persist the configuration.

Save all configuration files in your workspace folder where you can configure them using a text editor.

Limitations​

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