Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
1.5.0
-
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
- links to