Sparklyr - Connection (Context)

Card Puncher Data Processing

About

How to connect to R with Sparklyr.

Method

Connect

Connect and get a context by giving a master connection URL

Local

sc <- sparklyr::spark_connect(master = "local")

Livy

config <- sparklyr::livy_config(user = "admin", password = "pwd")
sc <- sparklyr::spark_connect(master = "masternode:8998",method = "livy",config = config)

Disconnect

sparklyr::spark_disconnect(sc)

Documentation / Reference





Discover More
Card Puncher Data Processing
R - Sparklyr

An R interface to spark developped by RStudio. install connect manipulate
Sparklyr Available Version
Sparklyr - Installation of a dev environment

How to install: the package sparklyr and a local spark instance with Livy for a dev environment Load the library if needed See Do we have already version installed ? Check the...
Rstudio Spark View Iris
Sparklyr - Table

One a connection is made, the table (or data frame) is manipulated with Load the iris data set into Spark. The new object will be temporary, limited to the current connection to the source....



Share this page:
Follow us:
Task Runner