Created 10-14-2016 03:05 PM
@Swapan Shridhar
Hi
I refereed to your solution for changing configurations for custom services
I have few questions around that:
1)When is stack_advisor.py called in a service's life-cycle?
2)Now that stack_advisor is split into service_advisor in Ambari 2.4, is your solution for changing configuration still valid or some changes has to be made to make it work?
I have tried your solution with a TEST service.Attached the service zip file.
-TEST service has test-env with 1 property app_name.
-It has service_advisor.py file where I read properties from test-env.xml and if any new property is found , it is added to the service's existing configuration using putProperty() method of parent stack_advisor.
-I test this by adding new property app_name2 into test-env and replace it with existing test-env ,after the service is already installed.
-I am able to see recommendations call being made by inspecting element in browser and it has the new property app_name2.But I don't see new property added in configuration UI.
Created 12-29-2016 06:42 AM
I am also facing the same issue. I am modifying the pig-env through service advisory which will get reflected in the file created under "Stack-recommendation" but nothing has been modified in the UI & while running the pig query changes is not get reflected in the pig classpath.
@Ali Bajwa @Ajaysingh
Created 12-29-2016 11:15 AM
Once the ServiceAdvisor implementation for your service is successfully loaded, you just need to go to the configuration UI and click the Set Recommended button besides your config file ( a small blue circular arrow shaped), which then loads the recommended property in your config file. I tried and it worked for me.