powered by
Get Runtime Config from the current active SparkSession. To change SparkSession Runtime Config, please see sparkR.session().
sparkR.session()
sparkR.conf(key, defaultValue)
(optional) The key of the config to get, if omitted, all config is returned
(optional) The default value of the config to return if they config is not set, if omitted, the call fails if the config key is not set
a list of config values with keys as their names
# NOT RUN { sparkR.session() allConfigs <- sparkR.conf() masterValue <- unlist(sparkR.conf("spark.master")) namedConfig <- sparkR.conf("spark.executor.memory", "0g") # }
Run the code above in your browser using DataLab