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

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group