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");
> }
>
|