Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working on ES 2.0 #46

Open
redserpent7 opened this issue Oct 29, 2015 · 9 comments
Open

Not working on ES 2.0 #46

redserpent7 opened this issue Oct 29, 2015 · 9 comments

Comments

@redserpent7
Copy link

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?

@aamirl
Copy link

aamirl commented Oct 30, 2015

Same issue.

@redserpent7
Copy link
Author

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.

@ofavre
Copy link
Contributor

ofavre commented Nov 13, 2015

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.

@Praveen82
Copy link

Hi Ofavre,

some one look into this issue : #47

@ofavre
Copy link
Contributor

ofavre commented Jan 13, 2016

A new Reindex API has recently been merged inside elasticsearch. It's still inside a feature branch for now, though.
elastic/elasticsearch#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.

@fusion52
Copy link

fusion52 commented Mar 9, 2016

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.

@sundarv85
Copy link

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

@akshaybijawe
Copy link

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?

@redserpent7
Copy link
Author

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.

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

No branches or pull requests

7 participants