SparkR (version 2.1.2)

sparkRHive.init: (Deprecated) Initialize a new HiveContext

Description

This function creates a HiveContext from an existing JavaSparkContext

Usage

sparkRHive.init(jsc = NULL)

Arguments

jsc

The existing JavaSparkContext created with SparkR.init()

Details

Starting SparkR 2.0, a SparkSession is initialized and returned instead. This API is deprecated and kept for backward compatibility only.

See Also

sparkR.session

Examples

Run this code
# NOT RUN {
sc <- sparkR.init()
sqlContext <- sparkRHive.init(sc)
# }

Run the code above in your browser using DataCamp Workspace