cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Shuler (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-8142) prevent the command "cassandra start" from starting a cluster
Date Sat, 05 Dec 2015 04:24:11 GMT


Michael Shuler commented on CASSANDRA-8142:

Tested out the patch manually - non-root user works as normally expected, and root or sudo:
(cassandra-3.0 *)mshuler@hana:~/git/cassandra$ sudo bin/cassandra -f
Running Cassandra as root user is not recommended - please start Cassandra using a different
system user.
If you really want to force running Cassandra as root, use -R command line option.

I added the following env vars to your dtest run and re-ran it to try to get around timeouts..
export CCM_MAX_HEAP_SIZE=1024M

Since we never run tests as root, this should cause no issues, so I have no problem with you
going ahead and committing this. :)

> prevent the command "cassandra start" from starting a cluster
> -------------------------------------------------------------
>                 Key: CASSANDRA-8142
>                 URL:
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Packaging
>            Reporter: Steven Lowenthal
>            Assignee: Robert Stupp
>             Fix For: 3.x
> Students often type 
> "sudo service cassandra start" wrong, and type "sudo cassandra start".
> Running a package installation as root messes up their environments.
> since "start" is not a valid option on the "cassandra" command, we should block cassandra
from starting.

This message was sent by Atlassian JIRA

View raw message