Return-Path: X-Original-To: apmail-accumulo-dev-archive@www.apache.org Delivered-To: apmail-accumulo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5EE20112CE for ; Sun, 15 Jun 2014 19:51:43 +0000 (UTC) Received: (qmail 60992 invoked by uid 500); 15 Jun 2014 19:51:43 -0000 Delivered-To: apmail-accumulo-dev-archive@accumulo.apache.org Received: (qmail 60943 invoked by uid 500); 15 Jun 2014 19:51:43 -0000 Mailing-List: contact dev-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list dev@accumulo.apache.org Received: (qmail 60931 invoked by uid 99); 15 Jun 2014 19:51:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Jun 2014 19:51:43 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of josh.elser@gmail.com designates 209.85.219.45 as permitted sender) Received: from [209.85.219.45] (HELO mail-oa0-f45.google.com) (209.85.219.45) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Jun 2014 19:51:40 +0000 Received: by mail-oa0-f45.google.com with SMTP id o6so4972279oag.32 for ; Sun, 15 Jun 2014 12:51:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=DZghDPynSeAZzGbIh8Ua7z1t6HMs/i/W7vK7/5KCars=; b=mww0mcGZsDQpkNDsuKL2mftyKHQvncR4kXsXQxWDYSPNgA3tPVT2og+hwTOu9Qf4mO x6UxyOEmt7+OLvGdU7IbUL1+kNQfh1pPiniIOGafLltGJUllApaToWU25rVIPrIwltt2 7dCEa1L+YlUGX8rPT7m0xwUVhAcAECtM9GNesfPUMjLvuGWFo89Eatf0UV80p4vMgLyI b/dirGss/JlCRcf1wCODe1zTZSlCRL/HFr0lYGb7oW+3u/ypGYtJXkJ2VVxd+P2PALm2 aPH0VwVVU+3+PoXCMEX7Dq3T7GQ+B15XGWFTwWszDS7AGlZwg8btyWy86sJzmI1hw2Ap eUvA== MIME-Version: 1.0 X-Received: by 10.182.96.99 with SMTP id dr3mr15881350obb.42.1402861875617; Sun, 15 Jun 2014 12:51:15 -0700 (PDT) Received: by 10.76.99.82 with HTTP; Sun, 15 Jun 2014 12:51:15 -0700 (PDT) Received: by 10.76.99.82 with HTTP; Sun, 15 Jun 2014 12:51:15 -0700 (PDT) In-Reply-To: References: Date: Sun, 15 Jun 2014 15:51:15 -0400 Message-ID: Subject: Re: Accumulo shell remote debugger settings. From: Josh Elser To: dev@accumulo.apache.org Content-Type: multipart/alternative; boundary=001a11c2e35ec3e5b104fbe53b2f X-Virus-Checked: Checked by ClamAV on apache.org --001a11c2e35ec3e5b104fbe53b2f Content-Type: text/plain; charset=UTF-8 I'm not completely sold that we should be enabling them by default. I think it would create more confusion and problems for the average user. Additionally, with the proposed ACCUMULO_SHELL_OPTS, you have the ability to easily enable them for yourself. With the configuration generation tool included with 1.6.0, I could see options that allow you to enable the ports too. On Jun 15, 2014 9:32 AM, "Vicky Kak" wrote: > Yes that is correct, the ports are going to collide. > I am suggesting that we should make the remote debugging enabled by default > but have the other property for the shell command which does not collide > with the generic properties > > > On Sun, Jun 15, 2014 at 7:58 PM, Josh Elser wrote: > > > I think Vicky is just noting that each process would have to be defined > > individually and not use ACCUMULO_GENERAL_OPTS as the debugger ports > would > > collide. > > > > I think making an ACCUMULO_SHELL_OPTS is fine. > > On Jun 15, 2014 8:38 AM, "William Slacum" < > wilhelm.von.cloud@accumulo.net> > > wrote: > > > > > Putting the flag in the process/module OPTs is fine. It's what I > normally > > > do when I want to debug. Are you suggesting we have remote debugging > > > enabled by default? > > > > > > > > > On Sun, Jun 15, 2014 at 9:11 AM, Vicky Kak > wrote: > > > > > > > While trying to get the remote debugger running with accumulo I > figured > > > > that for the accumulo shell command we need to introduce the > following > > > > changes > > > > > > > > 1) test -z "$ACCUMULO_SHELL_OPTS" && export > > > ACCUMULO_SHELL_OPTS="-Xmx128m > > > > -Xms64m > -Xrunjdwp:server=y,transport=dt_socket,address=4002,suspend=n" > > > > > > > > in accumulo-env.sh > > > > > > > > 2) > > > > include the additional case in accumulo.sh > > > > > > > > shell) export ACCUMULO_OPTS="${ACCUMULO_GENERAL_OPTS} > > > > ${ACCUMULO_SHELL_OPTS}" ;; > > > > > > > > We can't define the debugger port in the $ACCUMULO_OTHER_OPTS in the > > > > accumulo-env.sh as that would be bind when start-all.sh is called. > > > > > > > > Before I raise a JIRA for this a provide a patch I would like to hear > > the > > > > option from others how they enable the remote debugging for the shell > > > > command. > > > > > > > > Thanks, > > > > Vicky > > > > > > > > > > --001a11c2e35ec3e5b104fbe53b2f--