cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Unable to install UCX

hiphopjay
New Contributor II

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?

hiphopjay
New Contributor II

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

 

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now