Create a Spark Configuration for Livy
livy_config(config = spark_config(), username = NULL,
password = NULL, negotiate = FALSE,
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
Whether to use gssnegotiate method or not
List of custom headers to append to http requests. Defaults to list("X-Requested-By" = "sparklyr").
additional Livy session parameters
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.
Additional parameters for Livy sessions are:
proxy_userUser to impersonate when starting the session
jarsjars to be used in this session
py_filesPython files to be used in this session
filesfiles to be used in this session
driver_memoryAmount of memory to use for the driver process
driver_coresNumber of cores to use for the driver process
executor_memoryAmount of memory to use per executor process
executor_coresNumber of cores to use for each executor
num_executorsNumber of executors to launch for this session
archivesArchives to be used in this session
queueThe name of the YARN queue to which submitted
nameThe name of this session
heartbeat_timeoutTimeout in seconds to which session be orphaned
Note that queue is supported only by version 0.4.0 of Livy or newer.
If you are using the older one, specify queue via config (e.g.
config = spark_config(spark.yarn.queue = "my_queue")).