[jira] [Commented] (CASSANDRA-15549) Remove all recommendations to run Cassandra as root

2020-02-11 Thread David Capwell (Jira)


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

David Capwell commented on CASSANDRA-15549:
---

Using grep I found the following 

https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/utils/NativeLibrary.java#L201

Looking through my chat history I found the root log which triggered this JIRA

{code}
JVM memory (ENOMEM). This can result in part of the JVM being swapped out, 
especially with mmapped I/O enabled. Increase RLIMIT_MEMLOCK or run Cassandra 
as root.
{code}

This was on a 4.0 test deployment.  

I thought I saw more but my history only shows that line, and grep only sees 
that single log.


Ill rename the JIRA to reflect that this isn't all over the place but actually 
one specific logger.

> Remove all recommendations to run Cassandra as root
> ---
>
> Key: CASSANDRA-15549
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15549
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Local/Other
>Reporter: David Capwell
>Priority: Normal
> Fix For: 4.0-alpha
>
>
> There are several exceptions/logs in the code which recommend users to run 
> Cassandra as root, should remove these since users really shouldn’t be 
> running Cassandra as root.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-15549) Remove all recommendations to run Cassandra as root

2020-02-11 Thread David Capwell (Jira)


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

David Capwell commented on CASSANDRA-15549:
---

I’ll link examples later. We now require -f in order to start as root but in 
trunk several exceptions and logs request users start as root; the action I 
expect is to remove such recommendations 

> Remove all recommendations to run Cassandra as root
> ---
>
> Key: CASSANDRA-15549
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15549
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Local/Other
>Reporter: David Capwell
>Priority: Normal
> Fix For: 4.0-alpha
>
>
> There are several exceptions/logs in the code which recommend users to run 
> Cassandra as root, should remove these since users really shouldn’t be 
> running Cassandra as root.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-15549) Remove all recommendations to run Cassandra as root

2020-02-11 Thread Michael Shuler (Jira)


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

Michael Shuler commented on CASSANDRA-15549:


I don't know. Some specifics on the "several exceptions/logs in the code which 
recommend users to run Cassandra as root", which versions/branches, etc. from 
OP would help. I only did a quick grep in trunk to see what I could see.

> Remove all recommendations to run Cassandra as root
> ---
>
> Key: CASSANDRA-15549
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15549
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Local/Other
>Reporter: David Capwell
>Priority: Normal
> Fix For: 4.0-alpha
>
>
> There are several exceptions/logs in the code which recommend users to run 
> Cassandra as root, should remove these since users really shouldn’t be 
> running Cassandra as root.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-15549) Remove all recommendations to run Cassandra as root

2020-02-11 Thread Ekaterina Dimitrova (Jira)


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

Ekaterina Dimitrova commented on CASSANDRA-15549:
-

[~mshuler] so is anything else expected here then or we can close this one?

> Remove all recommendations to run Cassandra as root
> ---
>
> Key: CASSANDRA-15549
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15549
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Local/Other
>Reporter: David Capwell
>Priority: Normal
> Fix For: 4.0-alpha
>
>
> There are several exceptions/logs in the code which recommend users to run 
> Cassandra as root, should remove these since users really shouldn’t be 
> running Cassandra as root.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Commented] (CASSANDRA-15549) Remove all recommendations to run Cassandra as root

2020-02-10 Thread Michael Shuler (Jira)


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

Michael Shuler commented on CASSANDRA-15549:


`git grep root` returns a lot of hits, but I did see the linked CASSANDRA-8142 
in NEWS/CHANGES. This shows fixed for 3.2, so should be in the 3.11 and trunk 
branches already, in order to prevent starting up as UID=0.

> Remove all recommendations to run Cassandra as root
> ---
>
> Key: CASSANDRA-15549
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15549
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Local/Other
>Reporter: David Capwell
>Priority: Normal
> Fix For: 4.0-alpha
>
>
> There are several exceptions/logs in the code which recommend users to run 
> Cassandra as root, should remove these since users really shouldn’t be 
> running Cassandra as root.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org