Create a Spark Configuration for Livy
livy_config(config = spark_config(), username = NULL, password = NULL,
custom_headers = list(`X-Requested-By` = "sparklyr"))
Optional base configuration
The username to use in the Authorization header
The password to use in the Authorization header
List of custom headers to append to http requests. Defaults to list("X-Requested-By" = "sparklyr")
.
Named list with configuration data
Extends a Spark "spark_config"
configuration with settings
for Livy. For instance, "username"
and "password"
define the basic authentication settings for a Livy session.
The default value of "custom_headers"
is set to list("X-Requested-By" = "sparklyr")
in order to facilitate connection to Livy servers with CSRF protection enabled.