jprante / elasticsearch-knapsack

Knapsack plugin is an import/export tool for Elasticsearch
Apache License 2.0
472 stars 77 forks source link

working with elasticsearch 0.90.9 #34

Closed patrickshan closed 10 years ago

patrickshan commented 10 years ago

I just installed the latest version of elasticsearch 0.90.9. After running the post command: curl -XPOST localhost:9200/logstash-2013.12.17/_export?target=/mnt/backup/logstash-20131217.tar.gz

I found these logs from elasticsearch: [2013-12-31 01:52:32,387][INFO ][org.xbib.elasticsearch.action.RestExportAction] [log-es3] starting export to /mnt/backup/logstash-20131217.tar.gz [2013-12-31 01:52:32,565][INFO ][org.xbib.elasticsearch.action.RestExportAction] [log-es3] getting settings for index logstash-2013.12.17

but there is no data in the target file: -rw-r--r-- 1 elasticsearch elasticsearch 10 Dec 31 01:52 logstash-20131217.tar.gz

Is that a compatible issue ?

jprante commented 10 years ago

Thanks for the report, yes, it is a compatibility issue.

java.lang.NoSuchMethodError: org.elasticsearch.cluster.metadata.MetaData.getIndices()Ljava/util/Map;
at org.xbib.elasticsearch.action.RestExportAction.getSettings(RestExportAction.java:214)
at org.xbib.elasticsearch.action.RestExportAction.access$300(RestExportAction.java:54)
at org.xbib.elasticsearch.action.RestExportAction$ExportThread.run(RestExportAction.java:152)
at java.lang.Thread.run(Thread.java:724

I will release an update for 0.90.9 soon.

patrickshan commented 10 years ago

Thanks @jprante for the quick reply. Looking forward to the new release :)

patrickshan commented 10 years ago

Just notice the latest relesse. Thanks @jprante.