public interface SparkSessionManager
| Modifier and Type | Method and Description |
|---|---|
void |
closeSession(SparkSession sparkSession)
Close the given session and return it to pool.
|
SparkSession |
getSession(SparkSession existingSession,
HiveConf conf,
boolean doOpen)
Get a valid SparkSession.
|
void |
returnSession(SparkSession sparkSession)
Return the given sparkSession to pool.
|
void |
setup(HiveConf hiveConf)
Initialize based on given configuration.
|
void |
shutdown()
Shutdown the session manager.
|
void setup(HiveConf hiveConf) throws HiveException
hiveConf - HiveExceptionSparkSession getSession(SparkSession existingSession, HiveConf conf, boolean doOpen) throws HiveException
existingSession - Existing session (can be null)conf - doOpen - Should the session be opened before returning?HiveExceptionvoid returnSession(SparkSession sparkSession) throws HiveException
HiveExceptionvoid closeSession(SparkSession sparkSession) throws HiveException
HiveExceptionvoid shutdown()
Copyright © 2017 The Apache Software Foundation. All rights reserved.