elastic/elasticsearch-definitive-guide

"Significant Terms" Demo Not Working Against 5.3

Opened this issue · 3 comments

See the discussion at

https://www.elastic.co/guide/en/elasticsearch/guide/current/_significant_terms_demo.html

Following the instructions to import and build the index for significant terms testing returns the following errors against a single-node 5.3 cluster on Mac OSX:

`
$ curl -XPUT 'localhost:9200/_snapshot/sigterms?pretty' -H 'Content-Type: application/json' -d'

{
"type": "url",
"settings": {
"url": "http://download.elastic.co/definitiveguide/sigterms_demo/"
}
}
'
{
"acknowledged" : true
}
$ curl -XGET 'localhost:9200/_snapshot/sigterms/_all?pretty'
{
"error" : {
"root_cause" : [
{
"type" : "illegal_state_exception",
"reason" : "unsupported compression: index was created before v2.0.0.beta1 and wasn't upgraded?"
}
],
"type" : "illegal_state_exception",
"reason" : "unsupported compression: index was created before v2.0.0.beta1 and wasn't upgraded?"
},
"status" : 500
}
$ curl -XPOST 'localhost:9200/_snapshot/sigterms/snapshot/_restore?pretty'
{
"error" : {
"root_cause" : [
{
"type" : "illegal_state_exception",
"reason" : "unsupported compression: index was created before v2.0.0.beta1 and wasn't upgraded?"
}
],
"type" : "illegal_state_exception",
"reason" : "unsupported compression: index was created before v2.0.0.beta1 and wasn't upgraded?"
},
"status" : 500
}
$ curl -XGET 'localhost:9200/mlmovies,mlratings/_recovery?pretty'
{
"error" : {
"root_cause" : [
{
"type" : "index_not_found_exception",
"reason" : "no such index",
"resource.type" : "index_or_alias",
"resource.id" : "mlmovies",
"index_uuid" : "na",
"index" : "mlmovies"
}
],
"type" : "index_not_found_exception",
"reason" : "no such index",
"resource.type" : "index_or_alias",
"resource.id" : "mlmovies",
"index_uuid" : "na",
"index" : "mlmovies"
},
"status" : 404
}
`

Hi,

I am also having this same issue on windows machine. Did you ever figure out the problem. I am having trouble trying to upgrade the index.

hi,all:
i have the same problem.
how can we solve it
thx

404 on http://download.elastic.co/definitiveguide/sigterms_demo/