Loading in Elasticsearch 1.4.4
I have elasticsearch 1.4.4 installed on my system and it does not seem to load reindexing-1.4.1 plugin. Can you tell me how I get my Elasticsearch setup to recognize the plugin ?
Please check Elasticsearch's log file and plugins directory.
It seems there is no 1.4.4.zip anymore
/usr/share/elasticsearch/bin/plugin install org.codelibs/elasticsearch-reindexing/1.4.4 --verbose
-> Installing org.codelibs/elasticsearch-reindexing/1.4.4...
Trying http://download.elasticsearch.org/org.codelibs/elasticsearch-reindexing/elasticsearch-reindexing-1.4.4.zip...
Failed: IOException[Can't get http://download.elasticsearch.org/org.codelibs/elasticsearch-reindexing/elasticsearch-reindexing-1.4.4.zip to /usr/share/elasticsearch/plugins/reindexing.zip]; nested: FileNotFoundException[http://download.elasticsearch.org/org.codelibs/elasticsearch-reindexing/elasticsearch-reindexing-1.4.4.zip]; nested: FileNotFoundException[http://download.elasticsearch.org/org.codelibs/elasticsearch-reindexing/elasticsearch-reindexing-1.4.4.zip];
Trying http://search.maven.org/remotecontent?filepath=org/codelibs/elasticsearch-reindexing/1.4.4/elasticsearch-reindexing-1.4.4.zip...
Failed: IOException[Can't get http://search.maven.org/remotecontent?filepath=org/codelibs/elasticsearch-reindexing/1.4.4/elasticsearch-reindexing-1.4.4.zip to /usr/share/elasticsearch/plugins/reindexing.zip]; nested: FileNotFoundException[https://repo1.maven.org/maven2/org/codelibs/elasticsearch-reindexing/1.4.4/elasticsearch-reindexing-1.4.4.zip]; nested: FileNotFoundException[https://repo1.maven.org/maven2/org/codelibs/elasticsearch-reindexing/1.4.4/elasticsearch-reindexing-1.4.4.zip];
Trying https://oss.sonatype.org/service/local/repositories/releases/content/org/codelibs/elasticsearch-reindexing/1.4.4/elasticsearch-reindexing-1.4.4.zip...
Failed: IOException[Can't get https://oss.sonatype.org/service/local/repositories/releases/content/org/codelibs/elasticsearch-reindexing/1.4.4/elasticsearch-reindexing-1.4.4.zip to /usr/share/elasticsearch/plugins/reindexing.zip]; nested: FileNotFoundException[https://oss.sonatype.org/service/local/repositories/releases/content/org/codelibs/elasticsearch-reindexing/1.4.4/elasticsearch-reindexing-1.4.4.zip]; nested: FileNotFoundException[https://oss.sonatype.org/service/local/repositories/releases/content/org/codelibs/elasticsearch-reindexing/1.4.4/elasticsearch-reindexing-1.4.4.zip];
Trying https://github.com/org.codelibs/elasticsearch-reindexing/archive/1.4.4.zip...
Failed: IOException[Can't get https://github.com/org.codelibs/elasticsearch-reindexing/archive/1.4.4.zip to /usr/share/elasticsearch/plugins/reindexing.zip]; nested: FileNotFoundException[https://github.com/org.codelibs/elasticsearch-reindexing/archive/1.4.4.zip]; nested: FileNotFoundException[https://github.com/org.codelibs/elasticsearch-reindexing/archive/1.4.4.zip];
Trying https://github.com/org.codelibs/elasticsearch-reindexing/archive/master.zip...
Failed: IOException[Can't get https://github.com/org.codelibs/elasticsearch-reindexing/archive/master.zip to /usr/share/elasticsearch/plugins/reindexing.zip]; nested: FileNotFoundException[https://github.com/org.codelibs/elasticsearch-reindexing/archive/master.zip]; nested: FileNotFoundException[https://github.com/org.codelibs/elasticsearch-reindexing/archive/master.zip];
Failed to install org.codelibs/elasticsearch-reindexing/1.4.4, reason: failed to download out of all possible locations..., use --verbose to get detailed information
Actually at https://github.com/codelibs/elasticsearch-reindexing/releases there are releases for up to 1.4.2. The version for 1.4.4 was never released. I wonder if the one for 1.4.2 works on 1.4.4.
It installs but maybe it doesn't work. However I'm very new to elasticsearch and I could misunderstand what I see.
I changed a field in a logstash template from analyzed to not_analyzed and I must reindex. Restarted logstash which pushed the new template to elasticsearch (I verified it), installed the elasticsearch plugin, restarted elasticsearch.
index=my_index
curl -XPOST localhost:9200/${index}/_reindex/${index}_new/?wait_for_completion=true
curl -s -XGET http://localhost:9200/_cat/indices?v|grep -e my_index -e docs.count
health status index pri rep docs.count docs.deleted store.size pri.store.size
green open my_index 5 0 1 0 10.5kb 10.5kb
green open my_index_new 5 0 0 0 575b 575b
There are no docs in the new index.
Reindexing plugin 1.4.2 support elasticserach 1.4.4. Plugin version is different from elasticsearch version.
One final word: it works.
Eventually the documents appear in the new index. After about one minute I get
curl -s -XGET http://localhost:9200/_cat/indices?v|grep -e my_index -e docs.count
health status index pri rep docs.count docs.deleted store.size pri.store.size
green open my_index 5 0 1 0 10.5kb 10.5kb
green open my_index_new 5 0 1 0 10.5kb 10.5kb
It seems that ?wait_for_completion=true has no effect. I tried without variables and with '' around the URL to escape the ?
$ curl -XPOST 'localhost:9200/my_index/_reindex/my_index_new/?wait_for_completion=true'
{"acknowledged":true}
and no documents in the new index for a while. Maybe this is because it's elasticsearch 1.4.4. Anyway, the plugin is mostly OK and I can work around this. Thanks.