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 175DB10103 for ; Tue, 3 Sep 2013 01:54:52 +0000 (UTC) Received: (qmail 62272 invoked by uid 500); 3 Sep 2013 01:54:51 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 62248 invoked by uid 500); 3 Sep 2013 01:54:51 -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 62239 invoked by uid 99); 3 Sep 2013 01:54:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Sep 2013 01:54:51 +0000 Date: Tue, 3 Sep 2013 01:54:51 +0000 (UTC) From: "Jeff Potter (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-5969) Allow JVM_OPTS to be passed to sstablescrub 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-5969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13756306#comment-13756306 ] Jeff Potter commented on CASSANDRA-5969: ---------------------------------------- Alas, no luck: upgrading JNA from 3.5.1 to 3.5.2 doesn't resolve it -- the Dock gets an app named "bin" when running cassandra and removing '-Djava.awt.headless=true' from JVM_OPTS. > Allow JVM_OPTS to be passed to sstablescrub > ------------------------------------------- > > Key: CASSANDRA-5969 > URL: https://issues.apache.org/jira/browse/CASSANDRA-5969 > Project: Cassandra > Issue Type: New Feature > Components: Core > Reporter: Adam Hattrell > Assignee: Brandon Williams > > Can you add a feature request to pass JVM_OPTS to the sstablescrub script -- and other places where java is being called? (Among other things, this lets us run java stuff with "-Djava.awt.headless=true" on OS X so that Java processes don't pop up into the foreground -- i.e. we have a script that loops over all CFs and runs sstablescrub, and without that flag being passed in the OS X machine becomes pretty much unusable as it keeps switching focus to the java processes as they start.) > > --- a/resources/cassandra/bin/sstablescrub > +++ b/resources/cassandra/bin/sstablescrub > @@ -70,7 +70,7 @@ if [ "x$MAX_HEAP_SIZE" = "x" ]; then > MAX_HEAP_SIZE="256M" > fi > > -$JAVA -ea -cp $CLASSPATH -Xmx$MAX_HEAP_SIZE \ > +$JAVA $JVM_OPTS -ea -cp $CLASSPATH -Xmx$MAX_HEAP_SIZE \ > -Dlog4j.configuration=log4j-tools.properties \ > org.apache.cassandra.tools.StandaloneScrubber "$@" -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira