17
votes

I want to play with Riak http://riak.basho.com/ or a least get it running on a Windows system. I have downloaded the source code and compiled it but that's where I get stuck, how do I start it?

5
Did you ever get Riak installed on Windows? I am interested in doing the same. - yazz.com

5 Answers

17
votes

It does run, altough I havent managed to run it as a service yet.

Install CYGwin, install latest erlang, get source code, compile in cygwin

then the fun part, adjust according to your paths and place into a batch

c:\riak\rel\riak\erts-5.7.4\bin\erl -boot c:\riak\rel\riak\releases\0.8\riak -embedded -config c:\riak\rel\riak\etc\app.config -args_file c:\riak\rel\riak\etc\vm.args -- console

Regards

10
votes

Looks like the riak source has several bash start scripts. You would have to convert those to a windows batch script equivalent. That could be a fairly interesting chore given how limited batch scripts are. Those start-*.sh files show how to start it up though so I'd start there.

The http://hg.basho.com/riak/src/tip/README Readme file has futher info on what each script does.

1
votes

Riak can not be run on Windows, only on Linux and Mac.

1
votes

An alternative is to run VMWare or VirtualBox and run Riak inside a Linux VM. Works great for me.

-1
votes

Running it inside docker instance works very well - this is in 2017 the only way to successfully run Riak on Windows. You could probably get something running using Cygwin but this will be very complex and unreliable. Running under Docker is currently the most idiomatic solution.