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

Hi everyone!

I am relatively new to Elasticsearch and was wondering about configuring it for the Ubuntu bash app for Windows 10. Is it possible and if so, what would I have to configure. I have seen it run on an Ubuntu server, but I have not had any luck when I tried to run it from my local machine using the ubuntu bash app.

To clarify, you're wishing to run Elasticsearch under Windows Subsystem for Linux (WSL)?

Yes.

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