If you need to uninstall Elasticsearch for any reason, pause or delete the search feed before stopping the Elasticsearch service.
To uninstall the Search service:
- Pause or delete the search feed. (See Managing Feeds.)
- Log in as root on the Elasticsearch server.
Stop the Elasticsearch service and uninstall the service:
yum remove caringo-elasticsearch-search yum remove elasticsearch
This does not erase the packages, so you can easily restore them later, if needed.
- The Metrics curator relies on the Elasticsearch service, so do one of the following:
- Reconfigure Swarm Metrics (
/etc/caringo-elasticsearch-metrics/metrics.cfg
) to point to a different ES cluster (or removecluster = <cluster-name>
) Uninstall Swarm Metrics
yum remove caringo-elasticsearch-metrics yum remove elasticsearch-curator
- Reconfigure Swarm Metrics (