3

Databricks Cli Usage

 9 months ago
source link: https://jdhao.github.io/2023/11/21/databricks-cli-usage/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Databricks Cli Usage

2023-11-21138 words 1 min read 30 times read

We can use the Databricks cli to interact with Databricks workspaces programmatically on the command line. In this post, I want to share simple usage about Databricks cli.

Install and setup

On macOS, we can install databricks cli via Homebrew:

brew tap databricks/tap
brew install databricks

Personal access token:

User setting --> Developer --> Access tokens, there, you can generate a new token for connection in the cli.

Connect to databricks:

databricks configure

Paste the databricks workspace URL: https://adb-<workspace-id>.azuredatabricks.net/ and the personal access token.

multiple profiles

To add a second profile, just edit ~/.databrickscfg, and add a new section:

[new_profile_name]
host = xxxxx
token = xxxxx
profile = profile_name

Show a list of configured profiles:

databricks auth profiles

Show info about a profile:

databricks auth env --profile <profile_name>

references

Author jdhao

LastMod 2023-11-21

License CC BY-NC-ND 4.0

Prev Next
Powered by Hugo | Theme - Even
site pv: 4986301 | site uv: 3764807
© 2017 - 2023jdhao

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK