cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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

2 REPLIES 2

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

Kaniz
Community Manager
Community Manager

Hi @Abhishek Jain​ , We haven’t heard from you since the last response from @Pat Sienkiewicz​ ​ ​, and I was checking back to see if his suggestions helped you.

Or else, If you have any solution, please share it with the community, as it can be helpful to others.

Also, Please don't forget to click on the "Select As Best" button whenever the information provided helps resolve your question.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.