public final class LivyClientBuilder extends Object
Modifier and Type | Field and Description |
---|---|
static String |
LIVY_URI_KEY |
Constructor and Description |
---|
LivyClientBuilder()
Creates a new builder that will automatically load the default Livy and Spark configuration
from the classpath.
|
LivyClientBuilder(boolean loadDefaults)
Creates a new builder that will optionally load the default Livy and Spark configuration
from the classpath.
|
Modifier and Type | Method and Description |
---|---|
LivyClient |
build() |
LivyClientBuilder |
setAll(Map<String,String> props) |
LivyClientBuilder |
setAll(Properties props) |
LivyClientBuilder |
setConf(String key,
String value) |
LivyClientBuilder |
setURI(URI uri) |
public static final String LIVY_URI_KEY
public LivyClientBuilder() throws IOException
IOException
- If an error occurred when reading from the config files.public LivyClientBuilder(boolean loadDefaults) throws IOException
loadDefaults
- Whether to load configs from spark-defaults.conf and livy-client.conf
if they are found in the application's classpath.IOException
- If an error occurred when reading from the config files.public LivyClientBuilder setURI(URI uri)
public LivyClientBuilder setConf(String key, String value)
public LivyClientBuilder setAll(Map<String,String> props)
public LivyClientBuilder setAll(Properties props)
public LivyClient build()
Copyright © 2023 The Apache Software Foundation. All rights reserved.