cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

Error when Connecting Databricks Cluster to RStudio Desktop App

sparrap
New Contributor

Hi! 

I am trying to connect RStudio to my Databricks Cluster, I already change the permissions to CAN MANAGE and CAN ATTACH to the cluster. Also I have verified to have the correct python version and Databricks version in my computer.

This is the error my computer is displaying after trying to connect: 

✖ Problem using 'r-reticulate' [66ms]
A different Python is already loaded:
'/Users/sergioparra/.virtualenvs/r-sparklyr-databricks-13.3/bin/python'
'databricks.connect' was found and loaded from that
environment
✔ Connected to: 'Experimentation' [80ms]
Error in if (grepl("UNAVAILABLE", status_error)) { :
argument is of length zero

Can someone help me please?

2 REPLIES 2

mikvaar
New Contributor

Having the same issue when trying to connect Rstudio to Databricks Cluster. Connection seems to be fine until the end error gets thrown: 

Error in if (grepl("UNAVAILABLE", status_error)) { : 
  argument is of length zero

Did you solve this problem?

mikvaar
New Contributor

This seems to solve the problem: 
https://github.com/sparklyr/sparklyr/issues/3449

Apparently sparklyr requires that Unity Catalog is enabled on the cluster in order to get the connection working right.

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