elasticsearch-action-updatebyquery icon indicating copy to clipboard operation
elasticsearch-action-updatebyquery copied to clipboard

Not working on ES 2.0

Open redserpent7 opened this issue 9 years ago • 9 comments

I tried installing the plugin on a cluster with elasticsearch 2.0. Elasticsearch fails to start and throws this exception:

Exception in thread "main" java.lang.IllegalStateException: Unable to initialize plugins
Likely root cause: java.nio.file.NoSuchFileException: /usr/share/elasticsearch/plugins/action-updatebyquery/plugin-descriptor.properties
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
        at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
        at java.nio.file.Files.newByteChannel(Files.java:317)
        at java.nio.file.Files.newByteChannel(Files.java:363)
        at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:380)
        at java.nio.file.Files.newInputStream(Files.java:108)
        at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:86)
        at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:306)
        at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:112)
        at org.elasticsearch.node.Node.<init>(Node.java:144)
        at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:145)
        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:170)
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:270)
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)

So when should we expect this to be fixed. And is there a workaround for this issue?

redserpent7 avatar Oct 29 '15 09:10 redserpent7

Same issue.

aamirl avatar Oct 30 '15 02:10 aamirl

I tried building the code against ES 2.0.1 but there seems to be too many changes in ES and I am not sure where to start or what to change as I've never worked with ES plugins before and it seems they have removed and/or replaced many classes in 2.0.

I would like to know if we can get an ETA on when we could expect an update.

redserpent7 avatar Nov 02 '15 10:11 redserpent7

Yes, that's many changes, plus it seems that a few core classes have been removed along with the delete-by-query feature. I think rebasing update-by-query on the delete-by-query plugin architecture may be easier that porting it directly.

I'm pretty busy so I don't have an ETA yet, sorry.

ofavre avatar Nov 13 '15 10:11 ofavre

Hi Ofavre,

some one look into this issue : https://github.com/yakaz/elasticsearch-action-updatebyquery/issues/47

Praveen82 avatar Nov 13 '15 16:11 Praveen82

A new Reindex API has recently been merged inside elasticsearch. It's still inside a feature branch for now, though. https://github.com/elastic/elasticsearch/pull/15125 It may help speeding up the rewrite a bit by providing more readily reusable source files. The Reindex API does not use the same endpoints, so the goal is still to adapt that code to create the new implementation but keep the Update By Query API unchanged.

ofavre avatar Jan 13 '16 18:01 ofavre

Any updates on this thread? Seems this would be a core feature. I was trying to make 2.6.0 work with ES 2.2 but no dice. That's when I found this thread. Any recommendations on how to do update-by-query another way? Thanks.

fusion52 avatar Mar 09 '16 01:03 fusion52

+1 We're using 2.1.0 and would like to also do a update-by-query.

sundarv85 avatar Mar 14 '16 16:03 sundarv85

Hi, I'm using Elasticsearch V2.1.1. I want to use update by query API. Are there any new updates? or any similar plugins?

akshaybijawe avatar Apr 29 '16 22:04 akshaybijawe

It seems that elastic have implemented their own update_by_query API. From the documentation it seems to work the same way as the plugin. Though since its experimental, use at your own risk. Me, I'll wait for a stable version of the new API then upgrade.

redserpent7 avatar May 10 '16 10:05 redserpent7