sparklyr (version 0.6.0)

livy_config: Create a Spark Configuration for Livy

Description

Create a Spark Configuration for Livy

Usage

livy_config(config = spark_config(), username = NULL, password = NULL,
  custom_headers = list(`X-Requested-By` = "sparklyr"))

Arguments

config

Optional base configuration

username

The username to use in the Authorization header

password

The password to use in the Authorization header

custom_headers

List of custom headers to append to http requests. Defaults to list("X-Requested-By" = "sparklyr").

Value

Named list with configuration data

Details

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.