October 2018
Beginner
220 pages
5h 33m
English
Now that you have written a client to initiate or trigger the resource manager with the application and monitor it, we need to write a custom application master that can interact with Resource Manager and Node Manager to ensure that the application is executed successfully. First, you need to establish a client that can connect to Resource Manager through AMRMClient, through the following snippet:
AMRMClient<ContainerRequest> amRMClient = AMRMClient.createAMRMClient()amRMClient.init(conf);
Initialization can happen over through standard configuration, which can be either yarn-default.xml or yarn-site.xml. Now you can start the container with amRMClient.start(). The next step is to register the current ApplicationMaster; ...
Read now
Unlock full access