public class MesosTaskManagerParameters extends Object
These parameters are in addition to the common parameters
provided by ContaineredTaskManagerParameters
.
Modifier and Type | Class and Description |
---|---|
static class |
MesosTaskManagerParameters.ContainerType
The supported containerizers.
|
Constructor and Description |
---|
MesosTaskManagerParameters(double cpus,
int gpus,
MesosTaskManagerParameters.ContainerType containerType,
scala.Option<String> containerImageName,
ContaineredTaskManagerParameters containeredParameters,
List<org.apache.mesos.Protos.Volume> containerVolumes,
List<org.apache.mesos.Protos.Parameter> dockerParameters,
List<com.netflix.fenzo.ConstraintEvaluator> constraints,
String command,
scala.Option<String> bootstrapCommand,
scala.Option<String> taskManagerHostname) |
Modifier and Type | Method and Description |
---|---|
scala.Option<String> |
bootstrapCommand()
Get the bootstrap command.
|
static List<org.apache.mesos.Protos.Parameter> |
buildDockerParameters(scala.Option<String> dockerParameters) |
static List<org.apache.mesos.Protos.Volume> |
buildVolumes(scala.Option<String> containerVolumes)
Used to build volume specs for mesos.
|
String |
command()
Get the command.
|
List<com.netflix.fenzo.ConstraintEvaluator> |
constraints()
Get the placement constraints.
|
ContaineredTaskManagerParameters |
containeredParameters()
Get the common containered parameters.
|
scala.Option<String> |
containerImageName()
Get the container image name.
|
MesosTaskManagerParameters.ContainerType |
containerType()
Get the container type (Mesos or Docker).
|
List<org.apache.mesos.Protos.Volume> |
containerVolumes()
Get the container volumes string.
|
double |
cpus()
Get the CPU units to use for the TaskManager process.
|
static MesosTaskManagerParameters |
create(Configuration flinkConfig)
Create the Mesos TaskManager parameters.
|
List<org.apache.mesos.Protos.Parameter> |
dockerParameters()
Get Docker runtime parameters.
|
scala.Option<String> |
getTaskManagerHostname()
Get the taskManager hostname.
|
int |
gpus()
Get the GPU units to use for the TaskManager Process.
|
String |
toString() |
public static final Pattern TASK_ID_PATTERN
MESOS_TM_HOSTNAME
by the actual task id of the Mesos task.public static final ConfigOption<Integer> MESOS_RM_TASKS_SLOTS
public static final ConfigOption<Integer> MESOS_RM_TASKS_MEMORY_MB
public static final ConfigOption<Double> MESOS_RM_TASKS_CPUS
public static final ConfigOption<Integer> MESOS_RM_TASKS_GPUS
public static final ConfigOption<String> MESOS_RM_CONTAINER_TYPE
public static final ConfigOption<String> MESOS_RM_CONTAINER_IMAGE_NAME
public static final ConfigOption<String> MESOS_TM_HOSTNAME
public static final ConfigOption<String> MESOS_TM_CMD
public static final ConfigOption<String> MESOS_TM_BOOTSTRAP_CMD
public static final ConfigOption<String> MESOS_RM_CONTAINER_VOLUMES
public static final ConfigOption<String> MESOS_RM_CONTAINER_DOCKER_PARAMETERS
public static final ConfigOption<String> MESOS_CONSTRAINTS_HARD_HOSTATTR
public static final String MESOS_RESOURCEMANAGER_TASKS_CONTAINER_TYPE_MESOS
MESOS_RESOURCEMANAGER_TASKS_CONTAINER_TYPE
setting. Tells to use the Mesos containerizer.public static final String MESOS_RESOURCEMANAGER_TASKS_CONTAINER_TYPE_DOCKER
MESOS_RESOURCEMANAGER_TASKS_CONTAINER_TYPE
setting. Tells to use the Docker containerizer.public MesosTaskManagerParameters(double cpus, int gpus, MesosTaskManagerParameters.ContainerType containerType, scala.Option<String> containerImageName, ContaineredTaskManagerParameters containeredParameters, List<org.apache.mesos.Protos.Volume> containerVolumes, List<org.apache.mesos.Protos.Parameter> dockerParameters, List<com.netflix.fenzo.ConstraintEvaluator> constraints, String command, scala.Option<String> bootstrapCommand, scala.Option<String> taskManagerHostname)
public double cpus()
public int gpus()
public MesosTaskManagerParameters.ContainerType containerType()
Mesos provides a facility for a framework to specify which containerizer to use.
public scala.Option<String> containerImageName()
public ContaineredTaskManagerParameters containeredParameters()
public List<org.apache.mesos.Protos.Volume> containerVolumes()
public List<org.apache.mesos.Protos.Parameter> dockerParameters()
public List<com.netflix.fenzo.ConstraintEvaluator> constraints()
public scala.Option<String> getTaskManagerHostname()
public String command()
public scala.Option<String> bootstrapCommand()
public static MesosTaskManagerParameters create(Configuration flinkConfig)
flinkConfig
- the TM configuration.public static List<org.apache.mesos.Protos.Volume> buildVolumes(scala.Option<String> containerVolumes)
containerVolumes
- a comma delimited optional string of [host_path:]container_path[:RO|RW] that
defines mount points for a container volume. If None or empty string, returns
an empty iteratorCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.