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.