cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Unable to install UCX

hiphopjay
New Contributor

Executing databricks labs install ucx via databricks cli and running into 'WorkspaceInstaller is not supposed to be executed in databricks runtime.' 

How do I resolve it?

3 REPLIES 3

Walter_C
Databricks Employee
Databricks Employee

The error message "WorkspaceInstaller is not supposed to be executed in databricks runtime" indicates that the WorkspaceInstaller class or function is not designed to be run directly within a Databricks runtime environment. This is a general limitation of the Databricks Labs installation process, not specific to UCX.

From the context provided, it appears that the WorkspaceInstaller is intended to be used in a different environment, possibly a local development setup or a different execution context outside of the Databricks runtime.

Can you try to install CLI in your local machine and test it from there?

I am running this through Databricks web terminal. How would it work from local?

Walter_C
Databricks Employee
Databricks Employee

Databricks CLI is designed to work in your local terminal and connect to your workspace. 

The error is mentioning that the command is not allowed to be run in a Databricks cluster, as you are using the web terminal of a cluster in your workspace it will fail.

You can follow steps in https://docs.databricks.com/en/dev-tools/cli/index.html to have the CLI installed on your local machine

 

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