Dmytro Sen created AMBARI-4708: ---------------------------------- Summary: Actual configs not updated after restart of host component Key: AMBARI-4708 URL: https://issues.apache.org/jira/browse/AMBARI-4708 Project: Ambari Issue Type: Bug Components: agent, controller Affects Versions: 1.5.0 Reporter: Dmytro Sen Assignee: Dmytro Sen Priority: Critical Fix For: 1.5.0
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: {code} "global": {"2": "version1392171779044", "tag": "version1"} {code} - The API call still shows global as default version: {code} http://hostname1:8080/api/v1/clusters/c1/hosts/hostname1/host_components/DATANODE {code} Note: It works after agent is restarted. {code} { global: { overrides: { 2: "version1392171779044" }, default: "version1" } {code} 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. -- This message was sent by Atlassian JIRA (v6.1.5#6160)