Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8DA0CF644 for ; Tue, 2 Apr 2013 22:15:17 +0000 (UTC) Received: (qmail 23525 invoked by uid 500); 2 Apr 2013 22:15:17 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 23481 invoked by uid 500); 2 Apr 2013 22:15:17 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 23471 invoked by uid 99); 2 Apr 2013 22:15:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Apr 2013 22:15:17 +0000 Date: Tue, 2 Apr 2013 22:15:17 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-7817) Suggested JDWP debug options in hbase-env.sh are wrong 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/HBASE-7817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13620341#comment-13620341 ] stack commented on HBASE-7817: ------------------------------ +1 if it works for you all. > 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.0, 0.98.0, 0.94.7 > > Attachments: HBASE-7817.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