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
elasticsearch6: refactor plugins #44339
Conversation
The plugins command didn't actually work with elasticsearch6 so I have added a new derivation for elasticsearch6 plugins. This also means there won't be problems with versions of plugins that only work for ES5 and not ES6. Unfortunately it is down to the user to use the elasticsearch6Plugins packages when setting up an elasticsearch server but I couldn't think of a way around this. Currently there is only 1 plugin, the discovery ec2 plugin since this is the one I am using.
discovery-ec2 = esPlugin { | ||
name = "elasticsearch-discovery-ec2-${version}"; | ||
pluginName = "discovery-ec2"; | ||
version = "${elk6Version}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be simplified to version = elk6Version;
.
I think we should drop elasticsearch 1.7 and elasticsearch2 before the next release. Both are end of life: https://www.elastic.co/support/eol |
@Mic92 agreed. |
I added your plugin also in this pull request: #44389 |
none of the elasticsearch plugins I tried work.
When I start elasticearch manually:
Any idea what is missing? |
@Mic92 does 44389 make my PR obsolete? If so I am happy to close and will keep an eye on 44389. I am using this fork in production using master branch of nixpkgs for the elasticsearch package. Did you get that error using this fork? |
I got the error in my pull request, which includes your changes from this pull request. Do I miss anything? https://github.com/NixOS/nixpkgs/blob/3f889f30bee92c3f2d5eaf53e56aef68f61efc4a/pkgs/servers/search/elasticsearch/plugins.nix |
@Mic92 sorry for the delay in answering, what version of elasticsearch are you using for this? I am using the |
@Mic92 perhaps its this https://github.com/NixOS/nixpkgs/pull/44389/files#diff-2d12e9f116784c475c19d55f07fee064L22 Previously when using es6 your if statement was not using the es5 branch so the security manager was disabled, now it is not. |
@Mic92 can this PR be closed now? |
To answer my own question, I have tried master branch and it works for me now so closing this PR. Thanks for the good work @Mic92 ! |
The plugins command didn't actually work with elasticsearch6 so
I have added a new derivation for elasticsearch6 plugins. This
also means there won't be problems with versions of plugins that
only work for ES5 and not ES6.
Unfortunately it is down to the user to use the elasticsearch6Plugins
packages when setting up an elasticsearch server but I couldn't
think of a way around this.
Currently there is only 1 plugin, the discovery ec2 plugin since
this is the one I am using.
Motivation for this change
elasticsearchPlugins doesn't work with ES 6
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)