How do you configure Elasticsearch on Ubuntu Bash for Windows 10?

It is possible to install the Debian package with apt-get in WSL, but I wouldn't advise doing so

  1. systemd is not supported in WSL

  2. a bunch of the bootstrap checks will fail when starting Elasticsearch e.g.

    unable to install syscall filter:
    java.lang.UnsupportedOperationException: seccomp unavailable: CONFIG_SECCOMP not compiled into kernel, CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER are needed
    

    Failing bootstrap checks will not allow the cluster to run in production and must be fixed.

I think the better options would be

  1. Use the zip distribution on Windows
  2. Use one of the package distributions like RPM or Debian on a support linux flavour
  3. Use the docker image on Docker for Windows
2 Likes