/** * Registers this application master with the resource manager. On successful * registration, starts the heartbeating thread. * * @param appHostName Name of the host on which master is running * @param appHostPort Port master is listening on * @param appTrackingUrl URL at which the master info can be seen * @return Register AM Response. * @throws YarnException * @throws IOException */ public RegisterApplicationMasterResponse registerApplicationMaster( String appHostName, int appHostPort, String appTrackingUrl) throws YarnException, IOException { return registerApplicationMaster( appHostName, appHostPort, appTrackingUrl, null); }