Hi @VitaliiK,Thanks for bringing up your concerns; I am always happy to help 😁
The error means that the cluster is configured to only allow SQL and Python languages to be used in notebooks and the notebook you are trying to run contains a Scala language that is not allowed.
To solve this issue, you can either modify the cluster configuration to allow the language you are trying to use or modify the notebook to only use the allowed languages.
To modify the cluster configuration:
- Go to the cluster configuration page in your workspace.
- Click Edit.
- Expand Advanced Options.
In the Spark Config field, add the following configuration: ‘spark.databricks.allowedLanguages python,r,scala,sql’
- Click Confirm and Restart. This will allow the use of Python, R, Scala and SQL in notebooks on the cluster.
Also please check the cluster access mode to know the supported language on the cluster:
https://docs.databricks.com/en/compute/configure.html#access-modes
Leave a like if this helps; follow-ups are appreciated.
Kudos
Ayushi