cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Potter (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CASSANDRA-5969) Allow JVM_OPTS to be passed to sstablescrub
Date Tue, 03 Sep 2013 01:56:51 GMT

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

Jeff Potter edited comment on CASSANDRA-5969 at 9/3/13 1:55 AM:
----------------------------------------------------------------

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.

Edit: additional info:
- On OS X 10.8.4
- We're running with Java 1.6 to better match what we run in prod:
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java

                
      was (Author: jeffpotter):
    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.

Edit: additional info:

On OS X 10.8.4

java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)


                  
> 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

Mime
View raw message