cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Schröder (JIRA) <>
Subject [jira] [Commented] (CASSANDRA-10212) may be sourced twice by debian init script
Date Thu, 11 Aug 2016 13:09:20 GMT


Martin Schröder commented on CASSANDRA-10212:

This actually leads to a non-starting cassandra when one adds the JMX-agent from prometheus
(which uses a port) to the JVM_OPTS in - the agent then gets started twice
and the second start fails because the port is already claimed by the first agent. And of
course there is no output anywhere when this fails.

> may be sourced twice by debian init script
> -----------------------------------------------------------
>                 Key: CASSANDRA-10212
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Packaging
>            Reporter: Enrico Canzonieri
>            Assignee: Michael Shuler
>            Priority: Minor
> It seems that when cassandra is run as a service using the init script the {{/etc/cassandra/}}
file is sourced twice.
> This file is sourced the first time in the [init|]
script. The init script then executes [{{/usr/sbin/cassandra}}|],
the latter eventually does source {{}} as {{$CASSANDRA_CONF/cassandra-env}}.
> CASSANDRA_CONF is finally defined in [{{}}|]
as {{/etc/cassandra}}. 
> I guess in this case the init script should not source {{cassandra-env}} at all.

This message was sent by Atlassian JIRA

View raw message