public interface SparkSession
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close session and release resources.
|
HiveConf |
getConf() |
ObjectPair<Long,Integer> |
getMemoryAndCores()
Get Spark shuffle memory per task, and total number of cores.
|
String |
getSessionId() |
boolean |
isOpen() |
void |
open(HiveConf conf)
Initializes a Spark session for DAG execution.
|
SparkJobRef |
submit(DriverContext driverContext,
SparkWork sparkWork)
Submit given sparkWork to SparkClient.
|
void open(HiveConf conf) throws HiveException
conf - Hive configuration.HiveExceptionSparkJobRef submit(DriverContext driverContext, SparkWork sparkWork) throws Exception
driverContext - sparkWork - ExceptionObjectPair<Long,Integer> getMemoryAndCores() throws Exception
Exceptionboolean isOpen()
HiveConf getConf()
String getSessionId()
void close()
Copyright © 2017 The Apache Software Foundation. All rights reserved.