Retrieve workspace instance name on E2 architecture (multi-tenant) in notebook running on job cluster
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2021 07:10 AM
I have a databricks job on E2 architecture in which I want to retrieve the workspace instance name within a notebook running in a Job cluster context so that I can use it further in my use case.
While the call
dbutils.notebook.entry_point.getDbutils().notebook().getContext().tags().apply("browserHostName") works in an All-Purpose cluster in an interactive way, this key does not exist when running in a Job cluster context.
Labels:
- Labels:
-
Databricks Job
-
E2 Architecture