Ambari upgrade should not affect your custom service in any way.

Depending on what version of Ambari you are on, you might have to back up your 
service definition that you placed in the Ambari server 
resources/common-services and resource/stacks dirs.


We have a script to aid config backup / restore. Although unlikely you would 
need it unless using an older Ambari version in which rpm over-wrote service 
definition.

Location: /var/lib/ambari-server/resources/scripts/configs.sh

Newer version: /var/lib/ambari-server/resources/scripts/configs.py


BR,

Sid


________________________________
From: Pei H Zeng <[email protected]>
Sent: Thursday, March 09, 2017 3:53 PM
To: [email protected]
Subject: Apply custom service configs using Rest API

Hi,

I am trying to carry over the saved configs for a custom service using REST API 
during Ambari upgrade process. e.g. Upgrade Ambari, back up the configs, remove 
the service, install new version of the service, and apply the previously saved 
configs using REST API.
Is it considered good practice to do so? i.e. using REST API to apply the 
configurations.

Thanks,
Pei

Reply via email to