07-30-2024 08:26 AM
Hello folks -
Did anyone come across this problem where the demo notebooks ask you to run - ['13.2.x-scala2.12', '13.2.x-photon-scala2.12', '13.2.x-cpu-ml-scala2.12'] and the databricks version doesn't have anything below found "13.3.x-photon-scala2.12".
I modified by runtime config from latest to 13.x version but I still get photon-scala error. while I post this I'll disable Photon and try to run to see if I get the notebook executed?
btw I am running databricks acadmedy training 1.8 working with demo notebooks as part of data engineering module 2
07-30-2024 08:36 AM
I still get the above error 😞
07-30-2024 08:59 AM
I changed the runtime version to 12.x but still same result
07-31-2024 06:11 AM
Those cluster runtimes are quite old and won't appear in the UI. You'll have to change the runtime with the cluster API https://docs.databricks.com/api/workspace/clusters/edit
If you've never done this before, this is some (bad) code that will help
%python
import requests
# You'll need an access token from the developer settings. NEVER STORE IT IN A NOTEBOOK.
AUTH_HEADER = {"Authorization" : "Bearer " + "dapi0000000000000000000000"}
#will be slightly different if you're in azure
URL = "https:// <your workspace URL> .cloud.databricks.com/api/2.1/clusters/edit"
REQUEST = {"cluster_id": " <Cluster ID found in URL of cluster page> ", "num_workers": 2, "spark_version": "13.2.x-scala2.12","node_type_id": "i3.2xlarge"}
response = requests.post(URL, params=REQUEST, headers=AUTH_HEADER)
# should return a 200
response
08-01-2024 03:12 PM
Thank you kindly for responding. Actually I fixed the runtime version issue before this response. Even then it didn't work because I get data catalog error even though I have a metastore in the AWS S3 location - ELECT CURRENT_METASTORE(); returned a result of aws:us-west-2:432ad77b-3.xxxxxx
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