Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 03E8117C0E for ; Sun, 6 Sep 2015 19:52:46 +0000 (UTC) Received: (qmail 5879 invoked by uid 500); 6 Sep 2015 19:52:45 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 5845 invoked by uid 500); 6 Sep 2015 19:52:45 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 5752 invoked by uid 99); 6 Sep 2015 19:52:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Sep 2015 19:52:45 +0000 Date: Sun, 6 Sep 2015 19:52:45 +0000 (UTC) From: "Thorkild Stray (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-10275) Allow LOCAL_JMX to be easily overridden MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-10275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thorkild Stray updated CASSANDRA-10275: ---------------------------------------- Attachment: cassandra-2.1.9-10275.txt (this time with the correct mail address in the patch) > Allow LOCAL_JMX to be easily overridden > --------------------------------------- > > Key: CASSANDRA-10275 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10275 > Project: Cassandra > Issue Type: Bug > Environment: Debian > Reporter: Thorkild Stray > Priority: Trivial > Fix For: 2.1.x > > Attachments: cassandra-2.1.9-10275.txt > > > After tightening up JMX security in 2.1.4 by making cassandra by default only accept JMX connections from the same host, the option "LOCAL_JMX" was added to cassandra-env.sh to override this. > But, the option was added in such a way that there is no way to override it (on debian) through the /etc/default/cassandra file like other options (such as MAX_HEAP_SIZE etc). > Since cassandra-env.sh contains a lot of logic, patching it means having to maintain your patches when upgrading, making automation more work. The attached patch makes it possible to override it externally like other options, and keeping the local configuration separate from cassandra-env.sh. > (Shell-code-change tries to mimic the existing pattern in cassandra-env.sh) -- This message was sent by Atlassian JIRA (v6.3.4#6332)