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
- HiveException
SparkSession getSession(SparkSession existingSession, HiveConf conf, boolean doOpen) throws HiveException
existingSession
- Existing session (can be null)conf
- doOpen
- Should the session be opened before returning?HiveException
void returnSession(SparkSession sparkSession) throws HiveException
HiveException
void closeSession(SparkSession sparkSession) throws HiveException
HiveException
void shutdown()
Copyright © 2017 The Apache Software Foundation. All rights reserved.