incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "PC Liao ( peicheng ) " <peiche...@gmail.com>
Subject Re: remove hosts ?
Date Wed, 03 Apr 2013 04:04:13 GMT
Hi Yusaku ,

Thanks for the detailed reply.

I am very  interested in the feature .
I hope I can contribute to the project when I figure out the code details.


2013/4/2 Yusaku Sako <yusaku@hortonworks.com>

> Hi Peicheng,
>
> "deleteComponents" is for removing components from existing services, so
> it's not really related to removing a host.
> For removing hosts, you are looking at the ability to remove "host
> components".
> A host component is a service component assigned to a specific host (e.g.,
> DataNode on host A).
> Removing host components has been implemented in trunk
>
> (org.apache.ambari.server.controller.AmbariManagementControllerImpl::deleteHostComponents).
>
> Once all host components are removed, deleteHosts would be used to delete
> the hosts from a cluster (or perhaps deleteHosts can do a cascade delete of
> all existing host components on specified hosts).
>
> As you pointed out, deleteHosts method has not been implemented.
> Would you be interested in implementing that feature?
>
> > Yusaku
>
> On Mon, Apr 1, 2013 at 8:10 PM, PC Liao ( peicheng ) <peicheng5@gmail.com
> >wrote:
>
> > hi all,
> >
> > I try to find the deleteComponents and deleteHosts feature ,but that is
> not
> > supported.
> > Docs any plan for these feature
> > and**  implementation guideline?
> >
> > from
> > ambari/ambari-server/src/main/java/org/apache/ambari/server/controller/
> > AmbariManagementControllerImpl.java
> >  @Override
> >   public RequestStatusResponse deleteComponents(
> >       Set<ServiceComponentRequest> request) throws AmbariException {
> >     throw new AmbariException("Delete components not supported");
> >   }
> >
> >   @Override
> >   public void deleteHosts(Set<HostRequest> request)
> >       throws AmbariException {
> >     throw new AmbariException("Delete hosts not supported");
> >   }
> >
>



-- 
PC Liao ( @peicheng )

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