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 CLI v0.17.6 issue

k9
New Contributor II

I do have multiple groups created in my databricks account and I have databricks cli installed on my mac. Some of the cli functions return errors that i cannot find solution for.

databricks groups list

Returns:

Error: b'{"error_code":"INTERNAL_ERROR","message":"Unexpected error: java.lang.RuntimeException: `forAccount` not implemented."}'

Version of java on my mac is 11.0.18:

java -version

Returns:

openjdk version "11.0.18" 2023-01-17 LTS
 
OpenJDK Runtime Environment Corretto-11.0.18.10.1 (build 11.0.18+10-LTS)
 
OpenJDK 64-Bit Server VM Corretto-11.0.18.10.1 (build 11.0.18+10-LTS, mixed mode)

1 ACCEPTED SOLUTION

Accepted Solutions

karthik_p
Esteemed Contributor

@kenan hasanovโ€‹ which version python you have installed on your machine please, you need to have 3-3.6 or 2-2.7.9 above , please try to go with latest one as you are only seeing issues with few functions. please raise issue in case if you are still facing ( as this in experimental state) https://github.com/databricks/databricks-cli/issues

View solution in original post

4 REPLIES 4

Kaniz_Fatma
Community Manager
Community Manager

HI @kenan hasanovโ€‹, Thank you for contacting us regarding your issue with Databricks CLI v0.17.6 on your Mac. I understand you're receiving an error when listing the groups using the CLI.

The error you're encountering ("Unexpected error: java.lang.RuntimeException:โ€™ forAccountโ€™ not implemented.") is likely related to a bug in the Databricks CLI version you're using.

Here are a few steps you can take to resolve this issue:

  1. Update the Databricks CLI: Ensure you have the latest version of the Databricks CLI installed. You can update it using the following command:

pip install --upgrade databricks-cli

After updating the CLI, try rerunning the command to see if the issue is resolved.

  • Check your Databricks CLI configuration: Ensure your Databricks CLI is correctly configured with the appropriate workspace URL, token, or profile. You can configure the CLI using the following command:

databricks configure --token

  • You'll be prompted to enter your Databricks instance's URL and a personal access token. Make sure to use the correct information for your account.

If neither of these steps resolves the issue, please provide us with additional information, such as the output of the databricks --version command and any other relevant error messages or logs so that we can investigate further.

k9
New Contributor II

All the mentioned steps have been done already and cli version is written in the topic. As i also mentioned it is only some functions are returning the above error , while other functions work fine.

Can you elaborate on what exact information you require from me to help with the above error?

karthik_p
Esteemed Contributor

@kenan hasanovโ€‹ which version python you have installed on your machine please, you need to have 3-3.6 or 2-2.7.9 above , please try to go with latest one as you are only seeing issues with few functions. please raise issue in case if you are still facing ( as this in experimental state) https://github.com/databricks/databricks-cli/issues

k9
New Contributor II

Hi @karthick_p,

I was using python v3.10. Once i have switched to older version of python (3.7.13) the issue is resolved. Thanks for the heads up.

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