Cleaning up removed services from MCS
Sometimes even though we have removed a service which existed once in the cluster and all the packages related to service are removed it still shows up on MCS . This is usually caused due to following unclean way of removing services from the node and services still lingering around in ZK. To clear this disturbance and remove a service from MCS follow below steps.
Of course you will have to replace the drill bits section with the service you are trying to remove.
1) On any ZK node run below command to connect to the quorum :
/opt/mapr/zookeeper/zookeeper-3.4.5/bin/zkCli.sh -server <ZK-IP>:5181
2) Remove services and service_config for drill-bits ( i.e Any services you are trying to remove ) .
rmr /services/drill-bits
rm /services_config/drill-bits
3) Restart web server:
maprcli node services -name webserver -filter '[csvc==webserver]' -action restart
Now the service shouldn’t show-up once you login into MCS.
No comments:
Post a Comment