Prabhu Joseph created YARN-9581:
-----------------------------------

             Summary: LogsCli getAMContainerInfoForRMWebService ignores rm2
                 Key: YARN-9581
                 URL: https://issues.apache.org/jira/browse/YARN-9581
             Project: Hadoop YARN
          Issue Type: Bug
            Reporter: Prabhu Joseph
            Assignee: Prabhu Joseph


Yarn Logs fails for a running job in case of RM HA with rm2 active. 

{code}
hrt_qa@prabhuYarn:~> /usr/hdp/current/hadoop-yarn-client/bin/yarn  logs 
-applicationId application_1558613472348_0004 -am 1
19/05/24 18:04:49 INFO client.AHSProxy: Connecting to Application History 
server at prabhuYarn/172.27.23.55:10200
19/05/24 18:04:50 INFO client.ConfiguredRMFailoverProxyProvider: Failing over 
to rm2
Unable to get AM container informations for the 
application:application_1558613472348_0004
java.io.IOException: 
org.apache.hadoop.security.authentication.client.AuthenticationException: Error 
while authenticating with endpoint: 
https://prabhuYarn:8090/ws/v1/cluster/apps/application_1558613472348_0004/appattempts

Can not get AMContainers logs for the 
application:application_1558613472348_0004 with the appOwner:hrt_qa
{code}

LogsCli getRMWebAppURLWithoutScheme only checks the first one from the RM list 
yarn.resourcemanager.ha.rm-ids.

{code}
yarnConfig.set(YarnConfiguration.RM_HA_ID, rmIds.get(0));
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to