public static class MiniCluster.Builder extends Object
Constructor and Description |
---|
MiniCluster.Builder() |
Modifier and Type | Method and Description |
---|---|
MiniCluster.Builder |
addService(Class<? extends Service> klass) |
MiniCluster.Builder |
bindIP(String bindIP) |
MiniCluster |
build() |
MiniCluster.Builder |
clean(boolean clean) |
MiniCluster.Builder |
flumeAgentName(String name) |
MiniCluster.Builder |
flumeConfiguration(String resource) |
MiniCluster.Builder |
hadoopConf(Configuration hadoopConf) |
MiniCluster.Builder |
hiveMetastorePort(int port) |
MiniCluster.Builder |
hiveServerPort(int port) |
MiniCluster.Builder |
namenodeRpcPort(int namenodeRpcPort) |
MiniCluster.Builder |
setServiceConfig(String name,
String value)
Service configs are dynamic config name-value pairs that can be
interpreted by the services.
|
MiniCluster.Builder |
workDir(String workDir) |
MiniCluster.Builder |
zkPort(int zkPort) |
public MiniCluster.Builder hadoopConf(Configuration hadoopConf)
public MiniCluster.Builder workDir(String workDir)
public MiniCluster.Builder clean(boolean clean)
public MiniCluster.Builder bindIP(String bindIP)
public MiniCluster.Builder namenodeRpcPort(int namenodeRpcPort)
public MiniCluster.Builder zkPort(int zkPort)
public MiniCluster.Builder hiveMetastorePort(int port)
public MiniCluster.Builder hiveServerPort(int port)
public MiniCluster.Builder flumeConfiguration(String resource)
public MiniCluster.Builder flumeAgentName(String name)
public MiniCluster.Builder setServiceConfig(String name, String value)
name
- The name of the configuration parametervalue
- The value of the config settingpublic MiniCluster.Builder addService(Class<? extends Service> klass)
public MiniCluster build()
Copyright © 2013–2015. All rights reserved.