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

elasticsearch: add example on how to use plugins #55115

Merged
merged 1 commit into from Aug 18, 2019

Conversation

danbst
Copy link
Contributor

@danbst danbst commented Feb 3, 2019

See https://discourse.nixos.org/t/elastic-search-plugins/1997

However, I'm not keen to merge this, as I can't build any ES plugin. I'm trying it in declarative container:

  containers.elastic = {
    autoStart = true;
    config = { pkgs, ...}: {
      nixpkgs.config.allowUnfree = true;
      services.elasticsearch.enable = true;
      services.elasticsearch.package = pkgs.elasticsearch6;
      services.elasticsearch.plugins = [ pkgs.elasticsearchPlugins.discovery-ec2 ];
    };
  };
builder for '/nix/store/a1dxizvfp549arl4waq54jq8l8bskf24-elasticsearch-discovery-ec2-6.5.1.drv' failed with exit code 1; last 8 log lines:
  unpacking sources
  patching sources
  configuring
  no configure script, doing nothing
  building
  no Makefile, doing nothing
  installing
  Error: Could not find or load main class org.elasticsearch.tools.java_version_checker.JavaVersionChecker

cc @Mic92 @basvandijk

Also, don't know how to make sure plugin from example won't be removed in future. Or example will be updated when plugin is removed.

nixpkgs 11cf7d6

@nixos-discourse
Copy link

This pull request has been mentioned on Nix community. There might be relevant details there:

https://discourse.nixos.org/t/elastic-search-plugins/1997/3

@mmahut
Copy link
Member

mmahut commented Aug 18, 2019

Are there any updates on this pull request, please?

@danbst danbst merged commit 2b393c8 into NixOS:master Aug 18, 2019
@danbst danbst deleted the elastic-example branch August 18, 2019 14:11
@danbst
Copy link
Contributor Author

danbst commented Aug 18, 2019

@mmahut thanks for the ping! The example works now

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

Successfully merging this pull request may close these issues.

None yet

4 participants