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

Actual configs not updated after restart of host component

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.5.0
    • 1.5.0
    • ambari-agent, ambari-server
    • None

    Description

      Updated HDFS configs aren't applied after RESTART.

      Steps:

      • On a 3 node cluster, create a ConfigGroup for datanode.
      • Override heap size to 1025m instead of 1024m
      • Restart DN.

      Result:

      • The /var/lib/ambari-agent/data/config.json, has the correct values for the config type:
        "global": {"2": "version1392171779044", "tag": "version1"}
        
      • The API call still shows global as default version:
        http://hostname1:8080/api/v1/clusters/c1/hosts/hostname1/host_components/DATANODE
        

      Note:
      It works after agent is restarted.

      {
      global: {
      overrides: {
      2: "version1392171779044"
      },
      default: "version1"
      }
      

      The cause is that hooks aren't executed for the custom_command like RESTART. Since configs for HDFS are generated in hook.py, we must execute hook.py before custom commands or move config generation from hook.py.

      Attachments

        Issue Links

          Activity

            People

              dsen Dmytro Sen
              dsen Dmytro Sen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: