limits.conf

Adjustments to the /etc/security/limits.conf file will need to be made for the user that Apache Cassandra will be running as.

It is not recommended to have Cassandra running as the root user. Part of the deployment process should be to create a cassandra user, which Cassandra should be made to run as. These entries should be made to the file:

cassandra - memlock unlimitedcassandra - nofile 100000cassandra - nproc 32768cassandra - as unlimited

If there is another user that Cassandra runs as, simply change the cassandra username listed in the preceding four entries, and replace it with the other username.

Get Mastering Apache Cassandra 3.x - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.