You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Sven Delmas (JIRA)" <ji...@apache.org> on 2013/10/02 21:57:42 UTC

[jira] [Commented] (CASSANDRA-6116) /etc/init.d/cassandra stop and service don't work

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

Sven Delmas commented on CASSANDRA-6116:
----------------------------------------

The issue seems to be that /var/run/cassandra is not being created during installation. So no pid file to use for stop. Interestingly enough the status call still fails to match the regular expression being used. I suspect that cmdline has changed compared to when jsvc was still used.

> /etc/init.d/cassandra stop and service don't work
> -------------------------------------------------
>
>                 Key: CASSANDRA-6116
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6116
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Packaging
>            Reporter: Cathy Daw
>            Assignee: Eric Evans
>            Priority: Minor
>
> These use to work in 2.0.0 and appears to be introduced in 2.0.1
> Test Scenario
> {noformat}
> # Start Server
> automaton@ip-10-171-39-230:~$ sudo service cassandra start
> xss =  -ea -javaagent:/usr/share/cassandra/lib/jamm-0.2.5.jar -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms1862M -Xmx1862M -Xmn200M -XX:+HeapDumpOnOutOfMemoryError -Xss256k
> # Check Status
> automaton@ip-10-171-39-230:~$ nodetool status
> Datacenter: datacenter1
> =======================
> Status=Up/Down
> |/ State=Normal/Leaving/Joining/Moving
> --  Address    Load       Tokens  Owns   Host ID                               Rack
> UN  127.0.0.1  81.72 KB   256     100.0%  e40ef77c-9cf7-4e27-b651-ede3b7269019  rack1
> # Check Status of service
> automaton@ip-10-171-39-230:~$ sudo service cassandra status
> xss =  -ea -javaagent:/usr/share/cassandra/lib/jamm-0.2.5.jar -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms1862M -Xmx1862M -Xmn200M -XX:+HeapDumpOnOutOfMemoryError -Xss256k
>  * Cassandra is not running
> # Stop Server
> automaton@ip-10-171-39-230:~$ sudo service cassandra stop
> xss =  -ea -javaagent:/usr/share/cassandra/lib/jamm-0.2.5.jar -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms1862M -Xmx1862M -Xmn200M -XX:+HeapDumpOnOutOfMemoryError -Xss256k
> # Verify Server is no longer up
> automaton@ip-10-171-39-230:~$ nodetool status
> Datacenter: datacenter1
> =======================
> Status=Up/Down
> |/ State=Normal/Leaving/Joining/Moving
> --  Address    Load       Tokens  Owns   Host ID                               Rack
> UN  127.0.0.1  81.72 KB   256     100.0%  e40ef77c-9cf7-4e27-b651-ede3b7269019  rack1
> {noformat}
> Installation Instructions
> {noformat}
> wget http://people.apache.org/~slebresne/cassandra_2.0.1_all.deb
> sudo dpkg -i cassandra_2.0.1_all.deb # Error about dependencies
> sudo apt-get -f install
> sudo dpkg -i cassandra_2.0.1_all.deb
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1#6144)