sparklyr (version 0.3.0)

spark_session: Get the Spark Session associated with a connection

Description

Get the Spark Session associated with a spark_connection.

Usage

spark_session(sc)

Arguments

sc
A spark_connection.

Details

This object is only available since Spark 2.0.0, and provides an interface that unifies the Spark SQL context + Hive context into a single object, and its use is recommended over the older APIs.