public class SparkSessionImpl extends Object implements SparkSession
| Constructor and Description |
|---|
SparkSessionImpl() |
| 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() |
static String |
makeSessionId() |
void |
open(HiveConf conf)
Initializes a Spark session for DAG execution.
|
SparkJobRef |
submit(DriverContext driverContext,
SparkWork sparkWork)
Submit given sparkWork to SparkClient.
|
public void open(HiveConf conf) throws HiveException
SparkSessionopen in interface SparkSessionconf - Hive configuration.HiveExceptionpublic SparkJobRef submit(DriverContext driverContext, SparkWork sparkWork) throws Exception
SparkSessionsubmit in interface SparkSessionExceptionpublic ObjectPair<Long,Integer> getMemoryAndCores() throws Exception
SparkSessiongetMemoryAndCores in interface SparkSessionExceptionpublic boolean isOpen()
isOpen in interface SparkSessionpublic HiveConf getConf()
getConf in interface SparkSessionpublic String getSessionId()
getSessionId in interface SparkSessionpublic void close()
SparkSessionclose in interface SparkSessionpublic static String makeSessionId()
Copyright © 2017 The Apache Software Foundation. All rights reserved.