checkIndex with ES 1.1.0


(Michael Salmon) #1

I recently had a problem with an index and after searching the net I
decided to give checkIndex a try. I found the class in the right jar but I
haven't been able to get it to check an index. For example when I run

checkIndex -verbose ...heat-analyzer/7/index

I get:

ERROR: could not read any segments file in directory
java.io.FileNotFoundException: ...heat-analyzer/7/index/segments_37l (No
such file or directory)

That is correct, the directory contains:

_checksums-1397035754356 _j85h_es090_0.blm _j8fu.cfe _j91a.cfs
_isy5.nvm _j86v.cfe _j8g4.cfs
_j95w_es090_0.tim
_j821.si _j870.cfs _j8hl.si _j963.si
_j82l.cfs _j898_Lucene45_0.dvd _j8ln.cfs _j968.cfs
_j838.cfe _j8ap.cfe _j8t6.cfe _j975.si
_j83a.fdx _j8b6.cfs _j8tb_es090_0.doc _j9b9.cfs
_j83o.nvd _j8c1.si _j8tp.cfs
_j9di_es090_0.blm
_j83o.si _j8cz.si _j8v9.fnm _j9e0.cfe
_j83p.nvd _j8et.cfs _j8yv.cfe
segments.gen
_j84u.cfs _j8fa.cfs _j919.fdt
write.lock

I am running ES 1.1.0 and using the checkIndex from Lucene 4.7.0.

Has anyone gotten checkIndex to work with this combination?

/Michael

--
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/CAPG_VZXQTTwuTP41jg%2B-FnOZsLoLytgHpKxi6MZygy%2BTFmNqVw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(Michael Salmon) #2

Here I go replying to my own questions again.

ES spreads Lucene files over all data paths and that means that checkIndex
doesn't work as it expects all files to be in one directory. What I did was
to create a directory and then make symlinks to all the files across all
data paths and then run checkIndex. This works as expected.

On Wednesday, 9 April 2014 11:41:24 UTC+2, Michael Salmon wrote:

I recently had a problem with an index and after searching the net I
decided to give checkIndex a try. I found the class in the right jar but I
haven't been able to get it to check an index. For example when I run

checkIndex -verbose ...heat-analyzer/7/index

I get:

ERROR: could not read any segments file in directory
java.io.FileNotFoundException: ...heat-analyzer/7/index/segments_37l (No
such file or directory)

That is correct, the directory contains:

_checksums-1397035754356 _j85h_es090_0.blm _j8fu.cfe
_j91a.cfs
_isy5.nvm _j86v.cfe _j8g4.cfs
_j95w_es090_0.tim
_j821.si _j870.cfs _j8hl.si _
j963.si
_j82l.cfs _j898_Lucene45_0.dvd _j8ln.cfs
_j968.cfs
_j838.cfe _j8ap.cfe _j8t6.cfe _
j975.si
_j83a.fdx _j8b6.cfs _j8tb_es090_0.doc
_j9b9.cfs
_j83o.nvd _j8c1.si _j8tp.cfs
_j9di_es090_0.blm
_j83o.si _j8cz.si _j8v9.fnm
_j9e0.cfe
_j83p.nvd _j8et.cfs _j8yv.cfe
segments.gen
_j84u.cfs _j8fa.cfs _j919.fdt
write.lock

I am running ES 1.1.0 and using the checkIndex from Lucene 4.7.0.

Has anyone gotten checkIndex to work with this combination?

/Michael

--
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/9093249d-b657-4da7-9804-a59afb4f698d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #3