I’m attempting to install Aerospike on my laptop to no avail. I’m running Windows 10 and using the Windows Subsystem for Linux (WSL) running Ubuntu 16.04 to install it.
To clarify, I know Aerospike doesn’t support Windows 10, which is why I’m using the WSL implementation to run it.
The problem I’m running into is that any time I run sudo service aerospike start, I get aerospike: unrecognized service returned in the console.
I checked the tar file to see if everything is extracted correctly. I also checked on stackoverflow to see if there was an error on my part. Following the instructions on stackoverflow didn’t remedy my issue.
I’d appreciate if anyone can help me troubleshoot this. Thanks.
Failed to start aerospike.service: Launch helper exited with unknown return code 1
See system logs and ‘systemctl status aerospike.service’ for details.
I believe I remember reading on another forum that systemctl is part of systemd, which isn’t part of WSL.
ls /opt/aerospike returns bin data doc lib smd telemetry usr
ls /etc/aerospike returns irqbalance-ban.sh sample
Docker on Windows requires Hyper-V, which isn’t available on the Home version (only Enterprise and Professional). There are some workarounds with the WSL to get Docker running, but I haven’t set it up yet.
I was able to get aerospike running via Vagrant, but I need access to a tool only available on Linux from a third-party, which is why I was trying to keep everything in-house, so to speak.
If you have any solutions, I’m all ears. I’m on a bit of a deadline, so I’m exploring other options.
If you’re on a deadline, I wouldn’t mess with trying to get Aerospike going on WSL. Why not spin up a VM using Vagrant, as you did before, and just continue working on that vagrant machine? Is there something stopping you from installing that 3rd party tool there?
I switched over to a Digital Ocean account to get everything up and running. The Vagrant box on Windows is having difficulty seeing it.
Are you guys planning on setting up Aerospike in a repo in the future? I’ve set up MySQL and MongoDB with no issues on WSL using Apt, and it works flawlessly.
I run aerospike on WSL, but not as you were hoping to.
As you might have already realized, WSL does not come with systemd and aerospike does not provide init.d script on platforms whose default is systemd. One option is to use a WSL Linux flavour where aerospike comes with an init.d script. i.e Centos 6, Debian 7 etc. The other option is to run aerospike yourself from /usr/bin/asd. That’s what I do. @kporter already gave the command to run aerospike (asd) from commandline in foreground.