Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2023 03:22 AM
In databricks I can set a config variable at session level, but it is not found in the context variables:
spark.conf.set(f"dataset.bookstore", '123') #dataset_bookstore spark.conf.get(f"dataset.bookstore")#123 scf = spark.sparkContext.getConf() allc = scf.getAll() scf.contains(f"dataset.bookstore") # False
I understand there is a difference between session and context-level config variables, how can I retrieve all session-level variables using spark.conf?
Note: all_session_vars = spark.conf.getAll()
returns
AttributeError: 'RuntimeConfig' object has no attribute 'getAll'
so it looks like a runtime-level config