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

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_Fatma
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.

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!