ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Di Li <osji...@gmail.com>
Subject Re: could retry install do uninstall first
Date Fri, 23 Mar 2018 15:42:41 GMT
I don't think scripts.py has the uninstall fun interface, so don't expect
Ambari to magically become aware of a func you wrote in your code and start
calling it. You can obviously implement the Decommission custom command or
include your own custom command in metainfo.xml

On Thu, Mar 22, 2018 at 9:29 PM, <xiang.dai@sky-data.cn> wrote:

> So when and who call the uninstall function in the service script?
>
> ----- Original Message -----
> From: "Di Li" <osjiras@gmail.com>
> To: dev@ambari.apache.org
> Sent: Thursday, March 22, 2018 9:17:32 PM
> Subject: Re: could retry install do uninstall first
>
> First of all, Ambari's "Delete" is more of "unregistering" a component from
> Ambari's management. It does not remove component binaries.
>
> Retry install does not uninstall. In the Ambari paradigm, "adding" a
> component to a host has three parts, install the binary, config, start. The
> "install" option on the host menu calls the install method of that
> component to install the binary and local config (you should try to make
> the config step idempotent).
>
> On Thu, Mar 22, 2018 at 8:48 AM, <xiang.dai@sky-data.cn> wrote:
>
> > Hi!
> >
> > I add some service and want to use amabri to install and manage them, but
> > i have some question about retry install.
> >
> > Does retry install do uninstall first and then install?
> >
> > If not, i think failed install would make next install failed.
> >
> > Also, uninstall manually is not cool.
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message