Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-25214

Moving resource manager does not update yarn.resourcemanager.address property

    XMLWordPrintableJSON

Details

    Description

      When Resource Manager is move in a Yarn HA cluster (maybe without HA too), the yarn.resourcemanager.address.<suffix> property is not updated unlike others (e.g. yarn.resourcemanager.hostname.<suffix> or yarn.resourcemanager.webapp.address.<suffix>).

      As a result, the moved resource manager stops after a while with an execption in the log:

      org.apache.hadoop.yarn.exceptions.YarnRuntimeException: Invalid configuration! Can not find valid RM_HA_ID. None of yarn.resourcemanager.address.rm1 yarn.resourcemanager.address.rm2  are matching the local address OR yarn.resourcemanager.ha.id is not specified in HA Configuration
          at org.apache.hadoop.yarn.conf.HAUtil.throwBadConfigurationException(HAUtil.java:45)
          at org.apache.hadoop.yarn.conf.HAUtil.verifyAndSetCurrentRMHAId(HAUtil.java:151)
          at org.apache.hadoop.yarn.conf.HAUtil.verifyAndSetConfiguration(HAUtil.java:106)
          at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.serviceInit(ResourceManager.java:276)
          at org.apache.hadoop.service.AbstractService.init(AbstractService.java:164)
          at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:1512)
      

      Attachments

        Issue Links

          Activity

            People

              aantonenko Antonenko Alexander
              bsari Balázs Bence Sári
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m