Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker + Cassandra ulimit error

I am trying to start a cassandra (not dsc) server on Docker (ubuntu 14.04). When I run service cassandra start (as root), I get

/etc/init.d/cassandra: 82: ulimit: error setting limit (Operation not permitted)

line 82 of that file is

ulimit -l unlimited

I'm not really sure what I need to change it to.

like image 563
Peter Klipfel Avatar asked Apr 20 '14 22:04

Peter Klipfel


Video Answer


1 Answers

I would expect you would get that warning but that Cassandra would continue to start up and run correctly. As pointed out in the other answer, Docker restricts certain operations for safety reasons. In this case, the Casssandra init script is trying to allow unlimited locked memory. Assuming you are running with swap disabled (as it is a Cassandra best practice) then you can safely ignore this error.

I run Cassandra in Docker for my development environment and also get this warning, but Cassandra starts and runs just fine. If it is not starting up, check the cassandra log files for another problem.

like image 138
psanford Avatar answered Sep 27 '22 17:09

psanford