You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-user@hadoop.apache.org by Krishna Kishore Bonagiri <wr...@gmail.com> on 2014/05/09 11:54:54 UTC

Getting the name of the host on which Application Master is launched

Hi,

  Is there a way to get the name of the host where the AM is launched? I
have seen that there is a method getHost() in the ApplicationReport that we
get in YarnClient, but it is giving null. Is there a way to make it work?
or is there any other way to get the host name?

2014-05-09 04:36:05 YC00016 INFO PXYarnClient: Got application report from
ASM for , appId: 3 , appDiagnostics: null , appMasterHost:
null,clientToAMToken: null ,appQueue: default, appMasterRpcPort: 0
 appStartTime: 1,399,628,163,358 , yarnAppState: ACCEPTED
,DistributedFinalState: UNDEFINED , appTrackingUrl:
isredeng:8088/proxy/application_1399626434313_0003/, appUser: kbonagir
(monitorApplication)


Thanks,
Kishore