Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-10786

Federation:We can't access the AM page while using federation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 3.2.1
    • 3.2.1
    • federation

    Description

      The reason of this is that AM gets the proxy URI from config yarn.web-proxy.address, and if it does not exist, it will get the URI from yarn.resourcemanager.webapp.address.

      But in federation, we don't know which RM will be the home cluster of an application, so I do this fix:

      1. Add this config in the yarn-site.xml on client.

      <property>
      <name>yarn.web-proxy.address</name>
      <value>rm1:9088,rm2:9088</value>
      </property>

      2. Change the way to get the config from Configuration#get to Configuration#getStrings in WebAppUtils#getProxyHostsAndPortsForAmFilter.

      So that I can access the AM page now.

      This config needs to be added in the client side, so it will affect application only.

      Before fixing, click the AM link in RM or Router:

       And after the fix, we can access the AM page as normal...

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Song Jiacheng Song Jiacheng
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: