public class YarnJobClusterEntrypoint extends JobClusterEntrypoint
ClusterEntrypoint.ExecutionMode
Modifier and Type | Field and Description |
---|---|
static String |
JOB_GRAPH_FILE_PATH
The job graph file path.
|
EXECUTION_MODE, LOG, RUNTIME_FAILURE_RETURN_CODE, STARTUP_FAILURE_RETURN_CODE, SUCCESS_RETURN_CODE
Constructor and Description |
---|
YarnJobClusterEntrypoint(Configuration configuration,
String workingDirectory) |
Modifier and Type | Method and Description |
---|---|
protected ResourceManager<?> |
createResourceManager(Configuration configuration,
ResourceID resourceId,
RpcService rpcService,
HighAvailabilityServices highAvailabilityServices,
HeartbeatServices heartbeatServices,
MetricRegistry metricRegistry,
FatalErrorHandler fatalErrorHandler,
ClusterInformation clusterInformation,
String webInterfaceUrl,
JobManagerMetricGroup jobManagerMetricGroup) |
protected String |
getRPCPortRange(Configuration configuration)
Returns the port range for the common
RpcService . |
protected SecurityContext |
installSecurityContext(Configuration configuration) |
static void |
main(String[] args) |
protected void |
registerShutdownActions(CompletableFuture<ApplicationStatus> terminationFuture) |
protected JobGraph |
retrieveJobGraph(Configuration configuration) |
createDispatcher, createRestEndpoint, createSerializableExecutionGraphStore
configureFileSystems, createHaServices, createHeartbeatServices, createMetricRegistry, createRpcService, getTerminationFuture, initializeServices, loadConfiguration, onFatalError, parseArguments, runCluster, shutDownAndTerminate, startCluster, startClusterComponents, stopClusterComponents, stopClusterServices
public static final String JOB_GRAPH_FILE_PATH
public YarnJobClusterEntrypoint(Configuration configuration, String workingDirectory)
protected SecurityContext installSecurityContext(Configuration configuration) throws Exception
installSecurityContext
in class ClusterEntrypoint
Exception
protected String getRPCPortRange(Configuration configuration)
ClusterEntrypoint
RpcService
.getRPCPortRange
in class ClusterEntrypoint
configuration
- to extract the port range fromRpcService
protected ResourceManager<?> createResourceManager(Configuration configuration, ResourceID resourceId, RpcService rpcService, HighAvailabilityServices highAvailabilityServices, HeartbeatServices heartbeatServices, MetricRegistry metricRegistry, FatalErrorHandler fatalErrorHandler, ClusterInformation clusterInformation, @Nullable String webInterfaceUrl, JobManagerMetricGroup jobManagerMetricGroup) throws Exception
createResourceManager
in class ClusterEntrypoint
Exception
protected JobGraph retrieveJobGraph(Configuration configuration) throws FlinkException
retrieveJobGraph
in class JobClusterEntrypoint
FlinkException
protected void registerShutdownActions(CompletableFuture<ApplicationStatus> terminationFuture)
registerShutdownActions
in class JobClusterEntrypoint
public static void main(String[] args)
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.