docker-riak
docker-riak copied to clipboard
Problem in the config file (storage_backend =)
Riak was not starting so I logged into the container and did:
riak console
/etc/riak/riak.conf after line 334 column 1, parsing incomplete
vim /etc/riak/riak.conf
## Acceptable values:
## - one of: bitcask, leveldb, memory, multi
storage_backend =
So I commented the entire line and it works.
Can you please provide the command used to launch the cluster?
I've got the same problem. I'm using docker on Ubuntu 15.04 and in the riak container, i use "riak start" to start the node, but it doesn't work. Neither commenting the line.
What do you see if you execute riak console
?
riak console /etc/riak/riak.conf after line 334 column 1, parsing incomplete
Riak is asking to setup the storage backend type. You can comment the line 334 so riak will use a Bitcask storage engine by default.
Otherwise you can choose between bitcask, leveldb, memory and multi storage_backend.
Thank you for helping me! :)
I did like @casertap suggested, and it worked without even digit "riak start" (strange). Then i stopped the container and re-started and digiting "riak start" didn't work again, even if the config file was ok (riak chkconfig). One good thing is that it was possible to connect it to the riak java client.
Then i tried to use the Dockerfile without the last changes, and it works perfectly, without commenting anything, but now the riak java client doesn't work anymore.
I'm still trying to make sense of this issue and how it may be occurring. The example command in the README
is:
$ DOCKER_RIAK_AUTOMATIC_CLUSTERING=1 DOCKER_RIAK_CLUSTER_SIZE=5 DOCKER_RIAK_BACKEND=leveldb make start-cluster
In that scenario, the Riak backend should be set to LevelDB. If DOCKER_RIAK_BACKEND
is omitted, it should default to Bitcask.
Do either if you have examples of the commands used to launch the cluster so that I can try to reproduce the issue? Thanks.