You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2011/03/04 03:56:38 UTC

[jira] Commented: (HBASE-3561) OPTS arguments are duplicated

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

Hudson commented on HBASE-3561:
-------------------------------

Integrated in HBase-TRUNK #1767 (See [https://hudson.apache.org/hudson/job/HBase-TRUNK/1767/])
    

> OPTS arguments are duplicated
> -----------------------------
>
>                 Key: HBASE-3561
>                 URL: https://issues.apache.org/jira/browse/HBASE-3561
>             Project: HBase
>          Issue Type: Bug
>          Components: scripts
>            Reporter: Tim Sell
>            Assignee: stack
>             Fix For: 0.90.2
>
>         Attachments: HelloWorldAgent.jar, config.txt, hbase-env-commented.diff
>
>
> Some of the command line arguments constructed in the bash scripts are getting duplicated
> Here is what my HMaster process looks like with a ps aux | grep java.
> {code}
> /Library/Java/Home/bin/java 
> -Xmx1000m 
> -ea -XX:+HeapDumpOnOutOfMemoryError -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode 
> -ea -XX:+HeapDumpOnOutOfMemoryError -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode 
> -ea -XX:+HeapDumpOnOutOfMemoryError -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode 
> -Dcom.sun.management.jmxremote.ssl=false 
> -Dcom.sun.management.jmxremote.authenticate=false 
> -Dcom.sun.management.jmxremote.port=10101 
> -Dcom.sun.management.jmxremote.ssl=false 
> -Dcom.sun.management.jmxremote.authenticate=false 
> -Dcom.sun.management.jmxremote.port=10101 
> -Dcom.sun.management.jmxremote.ssl=false 
> -Dcom.sun.management.jmxremote.authenticate=false 
> -Dcom.sun.management.jmxremote.port=10101 
> -Dhbase.log.dir=/Users/tims/workspace/hbase-trunk/bin/../logs 
> -Dhbase.log.file=hbase-tims-master-grassmann.local.log 
> -Dhbase.home.dir=/Users/tims/workspace/hbase-trunk/bin/.. 
> -Dhbase.id.str=tims -Dhbase.root.logger=INFO,DRFA 
> -classpath <blablablablabla>
> org.apache.hadoop.hbase.master.HMaster start
> {code}
> This wouldn't really be a problem except if you try to add a java agent in the hbase-env.sh like so:
> {code}
> export HBASE_MASTER_OPTS="$HBASE_MASTER_OPTS $HBASE_JMX_BASE -Dcom.sun.management.jmxremote.port=10101 -javaagent:lib/HelloWorldAgent.jar"
> {code}
> It adds the option 3 times and it starts three java agents. My example agent print hello world once per second, but I end up with three hello world lines per second.
> I attached my HelloWorldAgent.jar to demonstrate.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira