cassandra-docker
cassandra-docker copied to clipboard
Not working on Ubuntu 15.04
I just tried to use this on Ubuntu 15.04, and running docker run -d tobert/cassandra -name "Test Cluster"
results in the container starting and immediately dying. There is no output from docker logs
. I tried with both Docker 1.3.3 (from the Ubuntu repos) and 1.5.0 (from here).
Is this a known issue, or do you have any idea that could point me in the right direction to get this working?
same here
I'll fire up a VM when I get a chance and check it out.
How much memory does the host OS have available? The most common cause of problems is not enough memory to run the default memory size in the container. Try with "-heap 512 -new 128" if you have 512MB of memory available. It should work OK down to 256M or so.
So it looks like the issue, at least for me, was that I was using -name "John's Cluster"
, and for some reason it doesn't like the '
in the name. Running with any name without the '
works for me, even without -heap 512 -new 128
. I must have just copied and pasted that command with the name Test Cluster from the readme instead of the one I was actually running, which is sloppy on my part; sorry about that.
Oh! yeah I should check for single quotes and auto-escape them in the entrypoint. The yaml uses single quotes around the name so it's probably causing breakage there.
Huh. I'm also just running docker run -d tobert/cassandra -name "Test Cluster"
and it immediately exits with nothing in docker logs
. Fresh Ubuntu 14.04 x64 DigitalOcean VPS.
For what it is worth I think in the latest version of docker the name
argument has changed. If I do docker run -d tobert/cassandra -name "My Cluster"
docker will ignore the name option and give it a dynamic name like stoic_mayer. However if I do docker run -d --name="My Cluster" tobert/cassandra
I get an invalid name error but if I do docker run -d --name="my_cluster" tobert/cassandra
it names it properly
The -name
argument isn't for the name of the docker instance, it's the name of the Cassandra cluster and will be put into the cassandra config file. Passing --name
to docker run
like that will name the instance though, and it looks like that doesn't allow spaces.
Maybe I should rename -name to -cluster_name to remove the confusion? Thoughts?
I think that probably adds some clarity.