cassandra-docker icon indicating copy to clipboard operation
cassandra-docker copied to clipboard

Not working on Ubuntu 15.04

Open redjohn opened this issue 9 years ago • 9 comments

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?

redjohn avatar Apr 10 '15 07:04 redjohn

same here

bvolders avatar Apr 13 '15 14:04 bvolders

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.

tobert avatar Apr 13 '15 17:04 tobert

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.

redjohn avatar Apr 13 '15 17:04 redjohn

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.

tobert avatar Apr 13 '15 18:04 tobert

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.

ericbarch avatar Apr 16 '15 19:04 ericbarch

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

kbowerma avatar Apr 22 '15 18:04 kbowerma

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.

redjohn avatar Apr 22 '15 21:04 redjohn

Maybe I should rename -name to -cluster_name to remove the confusion? Thoughts?

tobert avatar Jul 09 '15 17:07 tobert

I think that probably adds some clarity.

redjohn avatar Jul 14 '15 04:07 redjohn