cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Databricks Notebook Export error - Error: InvalidConfigurationError: You haven't configured the CLI yet! Please configure by entering `/databricks/python3/bin/databricks configure`

AJ270990
Contributor II

I have Databricks notebook which have some SQL code. I want to export it to Ipython notebook. Export should be automated and I am using below command

%sh

databricks workspace export --overwrite --format JUPYTER "/Users/USERNAME/SQL_Automate" /Users/USERNAME/Downloads

however it is giving me an error.

1 ACCEPTED SOLUTION

Accepted Solutions

Pat
Honored Contributor III

Hi @Abhishek Jain​ ,

the error says that you need to configure databricks cli, by executing: databricks configure

https://docs.databricks.com/dev-tools/cli/index.html#set-up-authentication

Running the command with configure option will create .databrickscfg file in your home directory.

you can also export env variables:

  • DATABRICKS_HOST
  • DATABRICKS_USERNAME
  • DATABRICKS_PASSWORD
  • DATABRICKS_TOKEN

View solution in original post

1 REPLY 1

Pat
Honored Contributor III

Hi @Abhishek Jain​ ,

the error says that you need to configure databricks cli, by executing: databricks configure

https://docs.databricks.com/dev-tools/cli/index.html#set-up-authentication

Running the command with configure option will create .databrickscfg file in your home directory.

you can also export env variables:

  • DATABRICKS_HOST
  • DATABRICKS_USERNAME
  • DATABRICKS_PASSWORD
  • DATABRICKS_TOKEN

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now