public class RemoteHiveSparkClient extends Object implements HiveSparkClient
SparkClient, which
wrap a spark job request and send to an remote SparkContext.| Modifier and Type | Method and Description |
|---|---|
void |
close() |
SparkJobRef |
execute(DriverContext driverContext,
SparkWork sparkWork)
HiveSparkClient should generate Spark RDD graph by given sparkWork and driverContext,
and submit RDD graph to Spark cluster.
|
int |
getDefaultParallelism()
For standalone mode, this can be used to get total number of cores.
|
int |
getExecutorCount() |
org.apache.spark.SparkConf |
getSparkConf() |
public org.apache.spark.SparkConf getSparkConf()
getSparkConf in interface HiveSparkClientpublic int getExecutorCount()
throws Exception
getExecutorCount in interface HiveSparkClientExceptionpublic int getDefaultParallelism()
throws Exception
HiveSparkClientgetDefaultParallelism in interface HiveSparkClientExceptionpublic SparkJobRef execute(DriverContext driverContext, SparkWork sparkWork) throws Exception
HiveSparkClientexecute in interface HiveSparkClientExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2019 The Apache Software Foundation. All Rights Reserved.