@Internal public class YarnClusterClientFactory extends AbstractContainerizedClusterClientFactory<org.apache.hadoop.yarn.api.records.ApplicationId>
ClusterClientFactory
for a YARN cluster.Constructor and Description |
---|
YarnClusterClientFactory() |
Modifier and Type | Method and Description |
---|---|
YarnClusterDescriptor |
createClusterDescriptor(Configuration configuration)
Create a
ClusterDescriptor from the given configuration. |
Optional<String> |
getApplicationTargetName()
Returns the option to be used when trying to execute an application in Application Mode using
this cluster client factory, or an
Optional.empty() if the environment of this
cluster client factory does not support Application Mode. |
org.apache.hadoop.yarn.api.records.ApplicationId |
getClusterId(Configuration configuration)
Returns the cluster id if a cluster id is specified in the provided configuration, otherwise
it returns
null . |
boolean |
isCompatibleWith(Configuration configuration)
Returns
true if the current ClusterClientFactory is compatible with the
provided configuration, false otherwise. |
getClusterSpecification
public boolean isCompatibleWith(Configuration configuration)
ClusterClientFactory
true
if the current ClusterClientFactory
is compatible with the
provided configuration, false
otherwise.public YarnClusterDescriptor createClusterDescriptor(Configuration configuration)
ClusterClientFactory
ClusterDescriptor
from the given configuration.configuration
- containing the configuration options relevant for the ClusterDescriptor
ClusterDescriptor
.@Nullable public org.apache.hadoop.yarn.api.records.ApplicationId getClusterId(Configuration configuration)
ClusterClientFactory
null
.
A cluster id identifies a running cluster, e.g. the Yarn application id for a Flink cluster running on Yarn.
configuration
- containing the configuration options relevant for the cluster id
retrievalpublic Optional<String> getApplicationTargetName()
ClusterClientFactory
Optional.empty()
if the environment of this
cluster client factory does not support Application Mode.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.