@InterfaceAudience.Private public final class SparkClientFactory extends Object
Constructor and Description |
---|
SparkClientFactory() |
Modifier and Type | Method and Description |
---|---|
static SparkClient |
createClient(Map<String,String> sparkConf,
HiveConf hiveConf)
Instantiates a new Spark client.
|
static void |
initialize(Map<String,String> conf)
Initializes the SparkClient library.
|
static void |
stop()
Stops the SparkClient library.
|
public static void initialize(Map<String,String> conf) throws IOException
conf
- Map containing configuration parameters for the client library.IOException
public static void stop()
public static SparkClient createClient(Map<String,String> sparkConf, HiveConf hiveConf) throws IOException, org.apache.spark.SparkException
sparkConf
- Configuration for the remote Spark application, contains spark.* properties.hiveConf
- Configuration for Hive, contains hive.* properties.IOException
org.apache.spark.SparkException
Copyright © 2017 The Apache Software Foundation. All rights reserved.