hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-7817) Suggested JDWP debug options in hbase-env.sh are wrong
Date Fri, 05 Apr 2013 01:01:36 GMT

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

Hudson commented on HBASE-7817:

Integrated in HBase-0.94-security-on-Hadoop-23 #13 (See [https://builds.apache.org/job/HBase-0.94-security-on-Hadoop-23/13/])
    HBASE-7817: Suggested JDWP debug options in hbase-env.sh are wrong (Vasu Mariyala) (Revision

     Result = FAILURE
jyates : 
Files : 
* /hbase/branches/0.94/bin/hbase-config.sh
* /hbase/branches/0.94/bin/hbase-daemon.sh
* /hbase/branches/0.94/conf/hbase-env.sh

> Suggested JDWP debug options in hbase-env.sh are wrong
> ------------------------------------------------------
>                 Key: HBASE-7817
>                 URL: https://issues.apache.org/jira/browse/HBASE-7817
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.94.4
>            Reporter: Ian Varley
>            Assignee: Vasu Mariyala
>            Priority: Minor
>             Fix For: 0.95.1, 0.98.0, 0.94.7
>         Attachments: HBASE-7817-0.94.patch, HBASE-7817.patch, HBASE-7817-trunk_0.95.patch
> In the default hbase-env.sh in trunk, there's a section for lines you can uncomment to
enable JDWP remote debugging:
> {code:none}
>     # Enable remote JDWP debugging of major HBase processes. Meant for Core Developers

>     # export HBASE_MASTER_OPTS=" -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8070"
>     # export HBASE_REGIONSERVER_OPTS="$HBASE_REGIONSERVER_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8071"
>     # export HBASE_THRIFT_OPTS="$HBASE_THRIFT_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8072"
>     # export HBASE_ZOOKEEPER_OPTS="$HBASE_ZOOKEEPER_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8073"
> {code}
> However, this is wrong (at least, if you're starting from local source), because somewhere
in the chain of start-hbase.sh, it sources hbase-env.sh more than once, which has the effect
of including these options twice, which makes the JVM barf on startup, saying
> "ERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate
jdwp options. Error occurred during initialization of VM; agent library failed to init: jdwp".
> Removing the first re-included instance of $HBASE_MASTER_OPTS (etc.) solves the problem.
This should either be changed in the default or these scripts shouldn't source hbase-env.sh
multiple times I think.

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

View raw message