Skip to content
This repository has been archived by the owner on Nov 14, 2019. It is now read-only.

Loading in Elasticsearch 1.4.4 #5

Open
c-iyer opened this issue Feb 27, 2015 · 5 comments
Open

Loading in Elasticsearch 1.4.4 #5

c-iyer opened this issue Feb 27, 2015 · 5 comments
Labels

Comments

@c-iyer
Copy link

c-iyer commented Feb 27, 2015

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 ?

@marevol
Copy link
Contributor

marevol commented Feb 28, 2015

Please check Elasticsearch's log file and plugins directory.

@pmontrasio
Copy link

pmontrasio commented Jun 30, 2016

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.

@pmontrasio
Copy link

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.

@marevol
Copy link
Contributor

marevol commented Jun 30, 2016

Reindexing plugin 1.4.2 support elasticserach 1.4.4.
Plugin version is different from elasticsearch version.

@pmontrasio
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants