Hello @Abhishek Gaikwad ,
Thanks for the ask and using Microsoft Q&A platform.
Is their any way to get the cluster name using python in databricks?
You can use the below command to get the cluster name using python in databricks:
cluster_name = spark.conf.get("spark.databricks.clusterUsageTags.clusterName")
print(cluster_name)
Hope this helps. Do let us know if you any further queries.
------------
Please don’t forget to Accept Answer
and Up-Vote
wherever the information provided helps you, this can be beneficial to other community members.