Class MawoConfiguration
java.lang.Object
org.apache.hadoop.applications.mawo.server.common.MawoConfiguration
MaWo configuration class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProperty for setting auto shutdown for worker.static final StringProperty for resource manager url.static final StringMaWo config file name.static final StringProperty for setting job builder class.static final StringProperty for task status log path in master node. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if worker auto shutdown feature is enabled.Get cluster manager URL.Get MaWo config map.Get job builder class.booleanCheck if Job Queue Storage is Enabled.longGet Master drain event timeout.Get Task status log file path on master host.Get RPC Host map.intGet MaWo RPC server Port.longGet Teardown worker validity interval.intGet number of tasks a worker can run in parallel.Get Worker whitelist env params.Get worker work space.getZKAcl()Get ZooKeeper Acls.Get ZooKeeper Address.Get ZooKeeper parent Path.intGet ZooKeeper retries number.intGet ZooKeeper retry interval value in milli seconds.intGet ZooKeeper session timeout in milli seconds.
-
Field Details
-
CONFIG_FILE
MaWo config file name.- See Also:
-
JOB_BUILDER_CLASS
Property for setting job builder class.- See Also:
-
CLUSTER_MANAGER_URL
Property for resource manager url.- See Also:
-
AUTO_SHUTDOWN_WORKERS
Property for setting auto shutdown for worker.- See Also:
-
MASTER_TASKS_STATUS_LOG_PATH
Property for task status log path in master node.- See Also:
-
-
Constructor Details
-
MawoConfiguration
public MawoConfiguration()Mowo configuration initializer.
-
-
Method Details
-
getConfigsMap
Get MaWo config map.- Returns:
- the config map for MaWo properties
-
getRpcServerPort
public int getRpcServerPort()Get MaWo RPC server Port.- Returns:
- value of rpc.server.port
-
getRpcHostName
Get RPC Host map.- Returns:
- value of rpc.server.hostname
-
getJobQueueStorageEnabled
public boolean getJobQueueStorageEnabled()Check if Job Queue Storage is Enabled.- Returns:
- True if Job queue storage is enabled otherwise False
-
getZKAddress
Get ZooKeeper Address.- Returns:
- value of ZooKeeper.address
-
getZKParentPath
Get ZooKeeper parent Path.- Returns:
- value of ZooKeeper.parent.path
-
getZKRetryIntervalMS
public int getZKRetryIntervalMS()Get ZooKeeper retry interval value in milli seconds.- Returns:
- value of ZooKeeper.retry.interval.ms
-
getZKSessionTimeoutMS
public int getZKSessionTimeoutMS()Get ZooKeeper session timeout in milli seconds.- Returns:
- value of ZooKeeper.session.timeout.ms
-
getZKRetriesNum
public int getZKRetriesNum()Get ZooKeeper retries number.- Returns:
- value of ZooKeeper.retries.num
-
getZKAcl
Get ZooKeeper Acls.- Returns:
- value of ZooKeeper.acl
-
getWorkerConcurrentTasksLimit
public int getWorkerConcurrentTasksLimit()Get number of tasks a worker can run in parallel.- Returns:
- value of worker.num.tasks
-
getJobBuilderClass
Get job builder class.- Returns:
- value of mawo.job-builder.class
-
getWorkerWorkSpace
Get worker work space.- Returns:
- value of worker.workspace
-
getClusterManagerURL
Get cluster manager URL.- Returns:
- value of ycloud.url
-
getAutoShutdownWorkers
public boolean getAutoShutdownWorkers()Check if worker auto shutdown feature is enabled.- Returns:
- value of mawo.master.auto-shutdown-workers
-
getMasterTasksStatusLogPath
Get Task status log file path on master host.- Returns:
- value of master.tasks-status.log.path
-
getMasterDrainEventsTimeout
public long getMasterDrainEventsTimeout()Get Master drain event timeout.- Returns:
- value of master.drain-events.timeout
-
getWorkerWhiteListEnv
Get Worker whitelist env params. These params will be set in all tasks.- Returns:
- list of white list environment
-
getTeardownWorkerValidityInterval
public long getTeardownWorkerValidityInterval()Get Teardown worker validity interval.- Returns:
- value of master.teardown-worker.validity-interval.ms
-