You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Michael Shuler (JIRA)" <ji...@apache.org> on 2015/12/05 05:24:11 UTC

[jira] [Commented] (CASSANDRA-8142) prevent the command "cassandra start" from starting a cluster

    [ https://issues.apache.org/jira/browse/CASSANDRA-8142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15042640#comment-15042640 ] 

Michael Shuler commented on CASSANDRA-8142:
-------------------------------------------

+1
Tested out the patch manually - non-root user works as normally expected, and root or sudo:
{noformat}
(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.
{noformat}

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

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: https://issues.apache.org/jira/browse/CASSANDRA-8142
>             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
(v6.3.4#6332)