Community Articles

Find and share helpful community-sourced technical articles.
Celebrating as our community reaches 100,000 members! Thank you!
Labels (2)

When running the YARN service check in a Resource Manager HA environment you see that the service check fails - all other functionality is working correctly (restart of services, running jobs etc)

When you run the service check you see:

stderr:   /var/lib/ambari-agent/data/errors-392.txt
Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/YARN/", line 159, in <module>
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/", line 280, in execute
  File "/var/lib/ambari-agent/cache/common-services/YARN/", line 130, in service_check
    info_app_url = params.scheme + "://" + rm_webapp_address + "/ws/v1/cluster/apps/" + application_name
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/", line 73, in __getattr__
    raise Fail("Configuration parameter '" + + "' was not found in configurations dictionary!")
resource_management.core.exceptions.Fail: Configuration parameter 'yarn.resourcemanager.webapp.address.' was not found in configurations dictionary!

Notice the . at the end of the parameter - yarn.resourcemanager.webapp.address.

This is a result of having:

yarn.resourcemanager.ha.rm-ids set to rm1,rm2, (notice the comma at the end)

This leads to the scripts in ambari putting these values into an array for checking where {{rm_alias}} is set for rm1, rm2 and then a blank value.

To fix this issue you must remove the trailing , in the configuration value for this property.

After removing this and restarting YARN, the service check will pass

0 Kudos

Well I have the same error but I don't see extra trailing ,. 

I see yarn.resourcemanager.ha.rm-ids set to rm1, rm2