public class LocalHiveSparkClient extends Object implements HiveSparkClient
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
LOG |
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() |
static LocalHiveSparkClient |
getInstance(org.apache.spark.SparkConf sparkConf) |
org.apache.spark.SparkConf |
getSparkConf() |
public static LocalHiveSparkClient getInstance(org.apache.spark.SparkConf sparkConf)
public org.apache.spark.SparkConf getSparkConf()
getSparkConf
in interface HiveSparkClient
public int getExecutorCount()
getExecutorCount
in interface HiveSparkClient
public int getDefaultParallelism() throws Exception
HiveSparkClient
getDefaultParallelism
in interface HiveSparkClient
Exception
public SparkJobRef execute(DriverContext driverContext, SparkWork sparkWork) throws Exception
HiveSparkClient
execute
in interface HiveSparkClient
Exception
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2017 The Apache Software Foundation. All rights reserved.