public class SystemPropertyCenter extends Object implements Serializable
Constructor and Description |
---|
SystemPropertyCenter(String... args)
|
Modifier and Type | Method and Description |
---|---|
private String[] |
getArgs(String appName)
Generate command line options for SparkSubmit client, according to the
stored properties.
|
Properties |
getKafkaConsumerProp(String group,
boolean isStringValue)
|
Map<String,Object> |
getKafkaParams(String group)
|
Properties |
getKafkaProducerProp(boolean isStringValue)
|
(package private) org.apache.spark.launcher.SparkLauncher |
GetSparkLauncher(String appName)
|
private void |
validateConfigurations()
|
private static final long serialVersionUID
protected transient Logger logger
public String zkConn
public int zkSessionTimeoutMs
public int zkConnectionTimeoutMS
public String kafkaBootstrapServers
public int kafkaNumPartitions
public int kafkaReplFactor
private int kafkaMsgMaxBytes
public int kafkaSendMaxSize
private int kafkaRequestTimeoutMs
private int kafkaFetchTimeoutMs
public String kafkaLocationStrategy
public String checkpointRootDir
public String metadataDir
public String sparkMaster
public String sparkDeployMode
String[] appsToStart
public String caffeGPU
public int numExecutors
public String executorMem
private int executorCores
private int totalExecutorCores
private String driverMem
private int driverCores
private String yarnAmNodeLabelExpression
private String hadoopQueue
private String sysPropFilePath
private String appPropFilePath
private String sparkConfFilePath
private String log4jPropFilePath
private String hdfsDefaultName
private String jarPath
public int bufDuration
public int batchDuration
public int repartition
public boolean verbose
public boolean taskControllerEnable
protected Properties sysProps
public SystemPropertyCenter(@Nonnull String... args) throws URISyntaxException, ParserConfigurationException, SAXException
private void validateConfigurations()
private String[] getArgs(String appName)
org.apache.spark.launcher.SparkLauncher GetSparkLauncher(String appName) throws IOException
IOException
public Properties getKafkaProducerProp(boolean isStringValue)
public Properties getKafkaConsumerProp(String group, boolean isStringValue)