How to completely uninstall elasticsearch?


(Philip Deubner) #1

I am trying to get the ELK stack installed on a CentOS 6.X VPS including WHM.
As I needed to start again from scratch, I uninstalled the elasticsearch using the package manager.
After doing so, my expectation would have been that a

curl -XGET 'http://localhost:9200/'

wouldn't give any feedback.
But here, I receive

{
  "status" : 200,
  "name" : "Abigail Brand",
  "cluster_name" : "elasticsearch",
  "version" : {
"number" : "1.4.0",
"build_hash" : "bc94bd81298f81c656893ab1ddddd30a99356066",
"build_timestamp" : "2014-11-05T14:26:12Z",
"build_snapshot" : false,
"lucene_version" : "4.10.2"
  },
  "tagline" : "You Know, for Search"
}

Trying to remove the package again and to clean the package mangers cache doesn't do the trick.
Any suggestions on how to proceed?
Thank you in advance,
br,

Connor.


(Magnus B├Ąck) #2

You apparently have an ES process running. Use e.g. ps aux to locate it and see from where it was started, which directories it might be using and, obviously, its pid so that you can kill it.


(Thomas Decaux) #3

Find where is elasticsearch:

find / --name "elasticsearch"

Then remove the folders. Also, remove service script at

/etc/init.d/elasticsearch

It's just java files, no magic (almost).


(Philip Deubner) #4

That was nearly to easy - thank you for that!
Thank you for your help!


(system) #5