Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I use databricks-cli without manual configuration

I want to use databricks cli:

databricks clusters list

but this requires a manual step that requires interactive work with the user:

databricks configure --token

Is there a way to use databricks cli without manual intervention so that you can run it as part of a ci/cd pipeline?

like image 693
Mor Shemesh Avatar asked Aug 14 '18 08:08

Mor Shemesh


People also ask

Where is Databricks config file?

Typically, this file is located at ~/. bash_profile . Azure Databricks already aliases databricks fs to dbfs ; databricks fs ls and dbfs ls are equivalent.


1 Answers

You can just export the variables DATABRICKS_HOST and DATABRICKS_TOKEN. With those variables, you don't need a config file.

like image 130
usingnamespace Avatar answered Sep 24 '22 02:09

usingnamespace