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

After stack_upgrade 2.2 to 2.3 hook script fails due to missing /configurations/tez-site/tez.am.view-acls value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.1.2
    • 2.2.0
    • ambari-web
    • None

    Description

      After upgrading to 2.1.x hook script fails due to missing /configurations/tez-site/tez.am.view-acls value. The following errors may be seen when executing agent-side scripts (start, stop, etc...):

      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/config_dictionary.py", line 81, in __getattr__ 
      raise Fail("Configuration parameter '" + self.name + "' was not found in configurations dictionary!") 
      resource_management.core.exceptions.Fail: Configuration parameter 'tez.am.view-acls' was not found in configurations dictionary! 
      
      Error: Error: Unable to run the custom hook script ['/usr/bin/python2.7', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py', 'ANY', '/var/lib/ambari-agent/data/command-8752.json', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY', '/var/lib/ambari-agent/data/structured-out-8752.json', 'INFO', '/var/lib/ambari-agent/tmp’] 
      

      Cause
      It appears that the cause is from this line:

      stacks/HDP/2.0.6/hooks/before-ANY/scripts/params.py:220
      tez_am_view_acls = config['configurations']['tez-site']["tez.am.view-acls"]
      

      Since /configurations/tez-site/tez.am.view-acls was not set, the python script failed.

      Solution
      Either protect this call using something like

      default("/configurations/tez-site/tez.am.view-acls", "*")
      

      Or ensure the value is set during the upgrade process when transitioning to Ambari 2.1.0.

      Attachments

        1. AMBARI-13835.patch
          1 kB
          Andrii Tkach

        Activity

          People

            atkach Andrii Tkach
            atkach Andrii Tkach
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: