public class YarnApplicationMasterRunner extends Object
JobManager
and YarnFlinkResourceManager
.
The JobManager handles Flink job execution, while the YarnFlinkResourceManager handles container allocation and failure detection.
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
YarnApplicationMasterRunner() |
Modifier and Type | Method and Description |
---|---|
protected Class<? extends org.apache.flink.runtime.jobmanager.MemoryArchivist> |
getArchivistClass() |
protected Class<? extends org.apache.flink.runtime.jobmanager.JobManager> |
getJobManagerClass() |
protected Class<? extends YarnFlinkResourceManager> |
getResourceManagerClass() |
protected Class<? extends TaskManager> |
getTaskManagerClass() |
static void |
main(String[] args)
The entry point for the YARN application master.
|
protected int |
run(String[] args)
The instance entry point for the YARN application master.
|
protected int |
runApplicationMaster(Configuration config)
The main work method, must run as a privileged action.
|
public static void main(String[] args)
args
- The command line arguments.protected int run(String[] args)
runApplicationMaster(Configuration)
as a
privileged action.args
- The command line arguments.protected int runApplicationMaster(Configuration config)
protected Class<? extends YarnFlinkResourceManager> getResourceManagerClass()
protected Class<? extends org.apache.flink.runtime.jobmanager.JobManager> getJobManagerClass()
protected Class<? extends org.apache.flink.runtime.jobmanager.MemoryArchivist> getArchivistClass()
protected Class<? extends TaskManager> getTaskManagerClass()
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.