cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to find Databricks runtime version of the cluster in an init script

User16869510359
Esteemed Contributor
 
2 REPLIES 2

Mooune_DBU
Valued Contributor

It's set as an environment variable called `DATABRICKS_RUNTIME_VERSION`

In your init scripts, you just need to add a line to display or save the info (see python example below):

import os
print("DATABRICKS_RUNTIME_VERSION:",os.environ.get('DATABRICKS_RUNTIME_VERSION',None))

I used it databricks cluster with custom docker image. it gives that "DATABRICKS_RUNTIME_VERSION: None"

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.