Complete removal

Something is wrong with my elasticsearch instance. It complains about
unassigned shards en cluster health is red.

I was wondering if it is possible to do complete removal of Elasticsearch.
That way I can easily recover from the problems by removal and install.
This however does seem to be straightforward to the point that it makes me
wonder if it is at all possible.

This is under Ubuntu 14.04 something and elasticsearch 1.4.2.

Using Ubuntu software centre I can remove 1.4.2 but directory remains. So
normal software remove does not seem to do a lot.

If I combine that with removal of directories left by Elasticsearch
scattered throughtout the file system, it seems to end with a corruption of
some sort. Elasticsearch won't install.
Setting up elasticsearch (1.4.2) ...

chown: cannot access /etc/elasticsearch/*: No such file or directory

So the installation program expect a directory to exist prior to installation which is a bit strange. I would argue that one should either cleanup file system on uninstall 'or' don't make assumption on what it means if directories are present. It should be one of two not a bit of both.

Is there a documented way to recover from this that does not involve me doing a complete reinstall of the OS?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/578c1e0a-4dad-49b6-9420-ac9a4113cac6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

If you want complete reinstall of Elasticsearch you need to reinstall the
OS. It is the only way. Elasticsearch was designed in such way that it
requires full OS reinstall. If there is a corruption, this is what you
should do. It is straightforward enough.

On Tuesday, 10 February 2015 16:59:34 UTC+1, Onno wrote:

Something is wrong with my elasticsearch instance. It complains about
unassigned shards en cluster health is red.

I was wondering if it is possible to do complete removal of Elasticsearch.
That way I can easily recover from the problems by removal and install.
This however does seem to be straightforward to the point that it makes me
wonder if it is at all possible.

This is under Ubuntu 14.04 something and elasticsearch 1.4.2.

Using Ubuntu software centre I can remove 1.4.2 but directory remains. So
normal software remove does not seem to do a lot.

If I combine that with removal of directories left by Elasticsearch
scattered throughtout the file system, it seems to end with a corruption of
some sort. Elasticsearch won't install.
Setting up elasticsearch (1.4.2) ...

chown: cannot access /etc/elasticsearch/*: No such file or directory

So the installation program expect a directory to exist prior to installation which is a bit strange. I would argue that one should either cleanup file system on uninstall 'or' don't make assumption on what it means if directories are present. It should be one of two not a bit of both.

Is there a documented way to recover from this that does not involve me doing a complete reinstall of the OS?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/43c872d0-af9b-4f90-a993-e182dd5a793d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No, it does not require you to reinstall the OS.
You can use apt-get purge elasticsearch to remove the package and any
directories and files it created.

Also, reinstalling the OS just to fix your problem is a major waste of
time, you should have tried to restore your cluster to green.

On 11 February 2015 at 03:18, Onno onno.van.der.straaten@onknows.com
wrote:

If you want complete reinstall of Elasticsearch you need to reinstall the
OS. It is the only way. Elasticsearch was designed in such way that it
requires full OS reinstall. If there is a corruption, this is what you
should do. It is straightforward enough.

On Tuesday, 10 February 2015 16:59:34 UTC+1, Onno wrote:

Something is wrong with my elasticsearch instance. It complains about
unassigned shards en cluster health is red.

I was wondering if it is possible to do complete removal of
Elasticsearch. That way I can easily recover from the problems by removal
and install. This however does seem to be straightforward to the point that
it makes me wonder if it is at all possible.

This is under Ubuntu 14.04 something and elasticsearch 1.4.2.

Using Ubuntu software centre I can remove 1.4.2 but directory remains. So
normal software remove does not seem to do a lot.

If I combine that with removal of directories left by Elasticsearch
scattered throughtout the file system, it seems to end with a corruption of
some sort. Elasticsearch won't install.
Setting up elasticsearch (1.4.2) ...

chown: cannot access /etc/elasticsearch/*: No such file or directory

So the installation program expect a directory to exist prior to installation which is a bit strange. I would argue that one should either cleanup file system on uninstall 'or' don't make assumption on what it means if directories are present. It should be one of two not a bit of both.

Is there a documented way to recover from this that does not involve me doing a complete reinstall of the OS?

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/43c872d0-af9b-4f90-a993-e182dd5a793d%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/43c872d0-af9b-4f90-a993-e182dd5a793d%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8FTq9JDO1jaFjDwQOD39FgaewgtH8Ja%3DA6w83NmVijOQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.