code: private static void runApplicationMaster(final CommandLine cliParser,
        AlluxioConfiguration alluxioConf) throws Exception {
      int numWorkers = Integer.parseInt(cliParser.getOptionValue("num_workers", "1"));
      String masterAddress = cliParser.getOptionValue("master_address");
      String resourcePath = cliParser.getOptionValue("resource_path");
  
      ApplicationMaster applicationMaster =
          new ApplicationMaster(numWorkers, masterAddress, resourcePath, alluxioConf);
      applicationMaster.start();
      applicationMaster.requestAndLaunchContainers();
      applicationMaster.waitForShutdown();
      applicationMaster.stop();
    }
docs: Run the application master.
  
  @param cliParser client arguments parser